Complex data structures are in no way analagous to objects. They're more like C's structs. Perl lacks a way to produce the stricter layout of a struct (ignoring CPAN modules), largely because it has fewer types to deal with than C.
Even OO projects need to store and retrieve data somehow. You might wrap it up with an object, but there must be an underlieing datastructure in there. It could be simple or complex, depending on the requirements of the object, but it is there.
----
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
In reply to Re: multi-tier collections & lack of modulization/OO
by hardburn
in thread multi-tier collections & lack of modulization/OO
by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |