[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating recursive customization types / widgets
From: |
Per Abrahamsen |
Subject: |
Re: Creating recursive customization types / widgets |
Date: |
Mon, 01 Dec 2003 18:08:37 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Per Abrahamsen <address@hidden> writes:
> Stefan Monnier <address@hidden> writes:
>
>> Neat. I have no idea why it's called `child' and the resulting
>> use of `child' in (define-widget 'foo 'child ...) does not look
>> particularly intuitive, but I can't think of anything better either.
>
> Because it has a single child widget, and the new widget basically
> behave like the child, except for allowing recursion.
Actually, now I remember. I though of it as a potential base class
for all widgets with a single child. But it is not entirely
appropriate for that.
> I called it 'recursive' and 'delayed' under development.
>
> It is a common pattern in OOP. Having an object that wraps another
> object, delegates message to the other object, and thus acts like a
> proxy. So 'wrapper', delegator' or 'proxy' could be used as well.
My current favorite name would be 'proxy', but I do not feel strongly
about it. What do you think?
Re: Creating recursive customization types / widgets, Thien-Thi Nguyen, 2003/12/01