On Thu, Feb 01, 2001 at 07:12:31PM -0600, David L. Nicol wrote: > sub subname(proto){ > # in here, the bareword "subname" is a magic > # alias for the lvalue this routine is getting > # assigned to, if any. > } It always confused me in Pascal (`What, I'm assigning to the *function*? Huh?') and then C came along and then the name of the function meant its address. Let's not even more scary. Assigning to barewords? Blurgh. At the very least, make @subname and $subname special lexicals. > We could even define a new line noise variable Oh great. :( -- Timesharing just doesn't work. -K. Thompson, 1982.
- Re: assign to magic name-of-function varia... John Porter
- Re: assign to magic name-of-function variable instead ... John Porter
- Re: assign to magic name-of-function variable inst... David L. Nicol
- Re: assign to magic name-of-function variable ... James Mastros
- Re: assign to magic name-of-function varia... David L. Nicol
- Re: assign to magic name-of-function variable instead of &q... John Porter
- Re: assign to magic name-of-function variable instead of &q... abigail
- Re: assign to magic name-of-function variable instead of &q... Branden
- Re: assign to magic name-of-function variable instead of &q... Simon Cozens
- Re: assign to magic name-of-function variable instead of &q... Branden