On 10/27/05, Yiyi Hu <[EMAIL PROTECTED]> wrote: > What I want to do, is a bit like... > > class A { > has $.b; > method show { "$.b".say }; > }; > > A( b => 5 ).show;`
Yes, I definitely want this to be the way that case type instances are created: all those .news everywhere could get annoying. Anyway, assuming that class and sub namespaces are separate, which may be a dubious assumption: our &A ::= &A::new.assuming(A); Or, more explicitly (and more readably IMO): sub A (\$x) { A.new(*$x) } Luke