Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)

From: Patrick May <pjm_at_spe.com>
Date: Tue, 04 Jul 2006 07:03:27 +0100
Message-ID: <m28xn96h5c.fsf_at_Dagney.local>


"topmind" <topmind_at_technologist.com> writes:
> Sure, some parameters may be nouns, but which noun gets to be King
> Noun? Rather than arbitrarily promote one, make them *all*
> parameters.
>
> noun1.doX(noun2, noun3); // artificial promotion of a noun One
>
> Versus:
>
> doX(noun1, noun2, noun3); // equal footing

     This is an issue with languages that support only single dispatch, not with OO in general. Common Lisp's CLOS allows exactly what you describe in your second example, while providing strong support for OO.

Regards,

Patrick



S P Engineering, Inc. | The experts in large scale distributed OO
                       | systems design and implementation.
          pjm_at_spe.com  | (C++, Java, Common Lisp, Jini, middleware, SOA)
Received on Tue Jul 04 2006 - 08:03:27 CEST

Original text of this message