View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] NX attributes

From: Victor Mayevski <vitick_at_gmail.com>
Date: Wed, 18 May 2011 11:01:41 -0700

Very good. Thanks.

On Wed, May 18, 2011 at 1:55 AM, Gustaf Neumann <neumann_at_wu-wien.ac.at> wrote:
> On 21.01.11 00:17, Victor Mayevski wrote:
>>
>> Although it might be something obvious but I cannot think of it at the
>> moment. How do I delete attributes created with the "attribute"
>> method?
>
> NX provides now an explicit "delete" ensemble, containing "delete method"
> and "delete attribute",
> therefore it does not require the classic Tcl metaphor "proc foo {} {}" for
> deleting a function foo.
> Furthermore, "delete attribute" removes the slot objects as well.
>
> So, one can use now
>
> /obj/  delete  attribute/name/
>
> -gustaf neumann
>