> 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;
>               }
>       }
> 
> Damian

I want superpositions too :).  But, what would this mean?

        my all(str, int) $foo;
        #...

Luke

Reply via email to