in reply to TIMTOWTDI doesn't mean invent an outlandish approach (usually)
On occasion, a question will spark some wacky part of my brain, so write out "Oh, you can do it this way, too . . . ". I always preface such answers with something along the lines of "Don't use this in real code". I don't do this for XP (in fact, I think most of the downvotes I've received come from such nodes), but just because I thought it was cool and wanted to share it.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|