On Thu, Mar 12, 2009 at 01:38:30PM -0700, Dave Whipp wrote:
> Larry Wall wrote:
>> Note however that coercions require parens these days, since types parse
>> as values, not as routine names.
>>
>>     $x = Role::Serializable::XML($resultset);
>>     $y = Role::Serializable::YAML($resultset);
>
> Should "indirect object" syntax work in this context?:
>
>    $a = Foo: $value;

That's not indirect object syntax.  It would have to be

    $a = Foo $value: ;

which should work as well as

    $a = $value.Foo;

> Also, given an appropriate infix:as operator:
>
>    $a = Foo Ras $value;

Possibly, but please don't. ;)

Larry

Reply via email to