develooper Front page | perl.perl6.language | Postings from March 2005

Re: Adding linear interpolation to an array

Thread Previous | Thread Next
Thomas Sandlaß
March 11, 2005 06:58
Re: Adding linear interpolation to an array
Message ID:
HaloO David,

you wrote:
> I appreciate you attempting to explain this, but it remains clear as
> mud, at least to me.  Could you please try again, using very short,
> very non-technical words and not assuming a mathematical or
> scientific background on the part of your reader?

Ok, second attempt!

The <: is the subtype relation operator. Saying Int <: Num
means Int is a subtype of Num. With generic types like the
Array of ... the question is how this relation shall carry
over to the Array type instances.

Int @i;
Num @n = @i; # type error?

TSa (Thomas Sandlaß)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About