On Sat, Aug 17, 2002 at 06:41:02AM +1000, Damian Conway wrote:
> Well, I'm still hopeful Larry will approve superpositions. In which case,
> since types in Perl 6 are first-class, you would be able to write
> the same thing something like:
>
>
> class Foo {
> attr any(str,int) $bar;
>
> method SETUP(any(str,int) $newBar) {
> $bar = $newBar;
> }
> }
But how on earth would you implement such a thing? :-)
On Fri, Aug 16, 2002 at 04:05:04PM -0700, [EMAIL PROTECTED] wrote:
> On Fri, 16 August 2002, Luke Palmer wrote:
>
> > I want superpositions too :). But, what would this mean?
> >
> > my all(str, int) $foo;
> > #...
>
> That you need some *serious* psychotherapy! ;-)
"Mr Palmer, the doctor is ready to see you now..."
oops, wrong sort of doctor.
Nicholas Clark
--
Even better than the real thing: http://nms-cgi.sourceforge.net/