in reply to RFC: The Poor Man's Accessor Filter
So what's my faux pas?
Using a source filter.
There are many good reasons why source filters aren't recommended, for example because they can lead to bugs that are very hard to find, and that you can't combine multiple source filters in general.
Why not use Class::InsideOut or Object::Inside for it? If you must do it yourself, write a subroutine that installs the handler in the caller's namespace - might be a few more lines, but much more robust than a source filter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC: The Poor Man's Accessor Filter
by JavaFan (Canon) on Oct 08, 2008 at 15:55 UTC | |
by rje (Deacon) on Oct 08, 2008 at 16:15 UTC | |
by JavaFan (Canon) on Oct 08, 2008 at 19:19 UTC | |
by rje (Deacon) on Oct 08, 2008 at 19:50 UTC | |
by Anonymous Monk on Oct 09, 2008 at 08:08 UTC | |
|
Re^2: RFC: The Poor Man's Accessor Filter
by rje (Deacon) on Oct 08, 2008 at 16:28 UTC | |
by Arunbear (Prior) on Oct 08, 2008 at 17:13 UTC | |
by rje (Deacon) on Oct 08, 2008 at 18:59 UTC |