[Glass] [GLASS] Compiling methods dinamically in Gemstone / Importing Pharo 3.0 classes

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Tue Dec 9 07:18:23 PST 2014

That was probably me (Dale).

If you need to pass in arguments, then I'm not sure that the required
technique will work for you ... as it involves transient method
dictionaries where you associate the method with the class, but on a
non-persistent basis, so that new methods will not be committed as part of
the class ...

Whether or not this technique will work or not really depends upon how you
actually manage and invoke the methods and probably more importantly the
boundaries for sharing methods.

The transient methods have to installed and removed from the transient
method dictionary so the technique is very close to installing the methods
directly in the persistent method dictionaries ... and you have to have
some pretty well-defined boundary points for being able to switch methods
into and out of the transient method dictionaries and I'm guessing that
it's not the case for you?


On Mon, Dec 8, 2014 at 8:15 PM, AleDanos via Glass <
glass at lists.gemtalksystems.com> wrote:

> @James and @Richard Sargent Yes, it was even his idea to ask for help in
> the
> community.
> The "block" solution was our first try during Stage 1 but the "self" is
> lost. That is, "self" loses the "variable" in the "pseudovariable" name. It
> cannot be used in the code.
> I think we also tried with the "one class per object" solution (or at least
> we thought about it), but I can't recall what was the problem with it
> (maybe
> the problem is no longer a problem now, It's late I'll have to test it out
> in a day or two as tomorrow I have an exam.)
> @"The third commenter" (can't see your username on Nabble, no offense :) )
> (it's probably you, Mariano)
> Yes, we do need arguments but thanks for the work if testing it out. Any
> help is appreciated.
> Thanks again for helping.
> Alejandro
> --
> View this message in context:
> http://forum.world.st/GLASS-Compiling-methods-dinamically-in-Gemstone-Importing-Pharo-3-0-classes-tp4794573p4794888.html
> Sent from the GLASS mailing list archive at Nabble.com.
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20141209/8b803d00/attachment.html>

More information about the Glass mailing list