bsb has asked for the wisdom of the Perl Monks concerning the following question:
Also, the accessors are implemented as closures which should cost a bit less memory than most other solutions which generate a new method for each accessor.
Why should closures be cheaper in this situation?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why do closures save memory?
by sauoq (Abbot) on Jul 07, 2003 at 11:30 UTC | |
by bsb (Priest) on Jul 08, 2003 at 00:15 UTC | |
|
Re: Why do closures save memory?
by PodMaster (Abbot) on Jul 07, 2003 at 07:30 UTC | |
by grantm (Parson) on Jul 07, 2003 at 09:51 UTC |