[self-interest] arguments and assignment
Dru Nelson
dru at redwoodsoft.com
Wed May 2 21:41:30 UTC 2001
Perl has a hidden variable that lets you access
the args for that activation.
Neat, but can be dangerous in the wrong hands..
Dru Nelson
San Mateo, California
On Wed, 2 May 2001, Steve Dekorte wrote:
>
> Dru Nelson wrote:
> > Yes, Perl and Python do this as well.
>
> Right, I thought Lua was different in that variable arg lists didn't
> have to be declared. But I checked the manual and they do need to be
> declared.
>
> Proposed Self: ...f:arg1 [With:]
> Lua: function foo(arg1, arg2, ...) ... end
> Python: def foo(arg1,arg2,*args,**keywordAgs):
> Perl: ?
> Ruby: def foo(*args) ... end
>
> Steve
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
More information about the Self-interest
mailing list