On Tue, Aug 08, 2000 at 05:15:24PM -0400, John Porter wrote:
> Jonathan Scott Duff wrote:
> > 
> > If we had a context coercion operator that was the opposite of want()
> > we could do something like this:
> > 
> >     print context '*STRING', $val;  # long-hand for print $val
> >     print context '*SCALAR', $val;  # we're not in a string context
> >     print context 'MyClass', $val;  # we're not in a string context
> 
> We already have scalar().  We should also have string(), void(), etc.
> for the "intrinsic" contexts.

And what about user-defined contexts? (my Dog $spot = some_func();)
I think a context coercion operator would do just fine.

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to