[Matrix-SIG] Conversion of scalars.
Konrad Hinsen
hinsen@cnrs-orleans.fr
Thu, 24 Jun 1999 20:10:52 +0200
> If there is a way to cleanly subclass arrays, could we get some
> mileage out of creating a non-promoting subclass? The non-promoting
> version could define operators which type-check their arguments,
> demote them if necessary, and then call the operators of the parent
> class.
That's certainly doable. Depending on how the subclassing will work
(is it via ExtensionTypes?), it could mean reimplementing all
arithmetic operations for non-promoting arrays. And C routines that
expect array arguments would perhaps refuse non-promoting array
arguments.
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------