in reply to Pretending to be lisp: macros
The usual way to generate automatic accessors in perl is with sub AUTOLOAD {...}. The Camel (3ed.) gives an example starting on p. 337. That is immediately followed by an example of generating them by name with closures, instead.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pretending to be lisp: macros
by anjiro (Beadle) on Sep 23, 2003 at 04:20 UTC |