|
From: | Denis Washington |
Subject: | Re: [Help-smalltalk] AbstractAutoload |
Date: | Mon, 10 Jan 2011 19:34:34 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101230 Lanikai/3.1.7 |
On 10.01.2011 13:05, Paolo Bonzini wrote:
With the attached any object that implements #autoload can be used as a loader. This ensures that the black magic stays confined in Autoload/AutoloadClass. For example:st> Eval [ Autoload class: #Complex in: Smalltalk loader: (PackageLoader packageAt: 'Complex'). nil ]"Global garbage collection... done" nil st> Complex real: 1 imaginary: 2 Loading package Complex (1+2i)(Complex is not a great example since the constructor method #i is not present, but you get the idea).Paolo
Works like a charm! I am excited about this already being in master (I wanted to point you to the comment of #class:in:loader: still referring to "fileNameString", but I see you fixed that already ;). I assure you that I will really start with the GObject introspection bindings now. Thanks for being so responsive!
Denis
[Prev in Thread] | Current Thread | [Next in Thread] |