On Sat, Apr 30, 2005 at 08:41:52AM +0200, Leopold Toetsch wrote:
> Anyway Parrots MMD system depends on types. *If* the Perl6 compiler defines
> above array as
> 
>   cl = subclass "FixedFloatArray", "num_Array_shape_3_3_3"

Yes, that is what I am planning to emit for hierarchical and other
subtyped signatures.  We also need to generate those for the
user-defined "subtype" things in Perl 6.

> then this kind of array would be a distinct type. The other possiblity
> is: we have one Multi_shaped_FloatArray, which takes an initializer with
> the dimensions (see e.g. classes/multiarray.pmc) then all these shaped
> num arrays would be one type, dispatching to the same routines.

Hm, I have no clue whether we can MMD based on shape of arrays.
Anyone has ideas about that?

Thanks,
/Autrijus/

Attachment: pgptJOzge1IMx.pgp
Description: PGP signature

Reply via email to