On Thu, 06 Mar 2003 06:01, Dan Sugalski wrote:
> *) We're not talking perl 5 style objects, rather objects as
> fundamental things with attributes. Associations, from what I can see
> from your description, don't really apply.
I was talking about objects as fundamentals, too. I was just using Perl 5
syntax to illustrate.
Perhaps I should use UML instead:
+---------------+
| File |
+---------------+ *
| name: string |<----------+
+---------------+ |
+-------,-------+ |
/ \ | contents
/___\ |
| |
+---------------+ 1 |
| Directory |<*>--------+
+---------------+
Here we see a one to many relationship called `contents' between Classes
Directory and File, as well as an `is a' relationship of Directory and
file. It is composite, indicating that Directory objects are composed of
files.
Associations *are* fundamental object things. Presenting them in terms of
attributes is the real hack.
--
Sam Vilain, [EMAIL PROTECTED]
It is necessary for me to establish a winner image. Therefore, I
have to beat somebody.
RICHARD M NIXON