Not as far as I can see - we'll add that to the docs.

On Apr 4, 2007, at 2:36 PM, Shane McCarron wrote:

Okay.... is that documented somewhere? 'cause I tell you what - learning that @foo would work would be nifty. Having a method I called magically think it was in a list context was subtle, to say the least.

On 4/4/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote:
It was decided at some point that <% @foo %> should just work. A
little surprising, but you only have to learn the rule once.

On Apr 4, 2007, at 4:50 AM, Ruslan Zakirov wrote:

> I think it's old time decision, perl's print works in the same way.
>
> On 3/31/07, Shane McCarron <[EMAIL PROTECTED]> wrote:
>> I ran into something today that I assumed was my bug, but
>> indeed... it was
>> surprising behavior.
>>
>> in a mason component, I had something like <% $handle->method
>> (args) %>
>>
>> The method in question returned one thing in a scalar context,
>> another thing
>> in a list context.  Well, it thought that this should have been a
>> list
>> context!  Obviously that's easy to work around, but it was a very
>> surprising
>> thing to me.  Why are interpolations like that executed in list
>> context?
>>
>> --
>> Shane McCarron
>> [EMAIL PROTECTED]
>> ---------------------------------------------------------------------
>> ----
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?
>> page= join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Mason-users mailing list
>> Mason-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mason-users
>>
>>
>
>
> --
> Best regards, Ruslan.
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>




--
Shane McCarron
[EMAIL PROTECTED]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to