help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Hook when Method is add to a class


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Hook when Method is add to a class
Date: Mon, 02 May 2011 08:40:39 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9

On 04/30/2011 12:13 PM, Mathieu Suen wrote:
Also class pragma is call before all the method is add to the class.

Class pragmas are called where they are placed in the source. A class pragma just before the closing bracket will be called after the methods have been added to the class.

Note however that in general class pragmas should be restricted to simple, idempotent changes (this is a kind of "non-written rule"... now it's written). For more complex initialization, use an eval block.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]