Lisp HUG Maillist Archive

Re: [long answer] Re: copy-object

--- Espen Vestre <ev@netfonds.no> wrote:
> it's a bit difficult to understand why you'd need to
> "materialize"
> these objects at all before you actually need them,
> but if you need
> to, why not represent them as argument lists to
> make-instance?

That's an elegant solution, except that I want to be
able to invoke methods on the objects without knowing
whether they have been instantiated, such that they
would be instantiated automatically if needed.


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com


Re: [long answer] Re: copy-object

Eric Smith <eric3057@yahoo.com> writes:

> That's an elegant solution, except that I want to be
> able to invoke methods on the objects without knowing
> whether they have been instantiated, such that they
> would be instantiated automatically if needed.

You can write LIST-methods of all those GFs which do nothing else
than replacing the lists with the real objects and then call the
GF once more.
-- 
  (espen)


Updated at: 2020-12-10 09:02 UTC