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

... but foo('bar')

5 views
Skip to first unread message

Stéphane Payrard

unread,
Apr 14, 2003, 3:47:36 PM4/14/03
to perl6-l...@perl.org

... but foo('bar');

Is this supposed to set the property 'foo' to the value 'bar'?
Or to create a property with name being the value returned
by the function call foo('bar') ?

What is the correct syntax to get at the other meaning?

--
stef


Luke Palmer

unread,
Apr 14, 2003, 4:12:25 PM4/14/03
to st...@payrard.net, perl6-l...@perl.org
> ... but foo('bar');
>
> Is this supposed to set the property 'foo' to the value 'bar'?
> Or to create a property with name being the value returned
> by the function call foo('bar') ?

The former.

> What is the correct syntax to get at the other meaning?

Good question. It might go something like this:

... but $(foo('bar'))

or

... but &foo.('bar')

Luke

0 new messages