Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

User-defined hierarhical types

5 views
Skip to first unread message

Angel Faus

unread,
Apr 14, 2003, 3:43:11 PM4/14/03
to perl6-l...@perl.org
Can hierarchical types be mixed with user-defined types?

my Graph of Int $G ;
my Set of Graph of (Int|Str) $G;

So that compile-time checking of sub calls still works?

-angel

Luke Palmer

unread,
Apr 14, 2003, 3:38:47 PM4/14/03
to af...@corp.vlex.com, perl6-l...@perl.org

Of course. You just need to make your user-defined types know how to
handle the C<returns> parameter.

Luke

0 new messages