2015-02-24 9:48 GMT+01:00 Sven Van Caekenberghe <sven@stfx.eu>:
On 24 Feb 2015, at 09:47, Max Leske <maxleske@gmail.com> wrote:
On 24 Feb 2015, at 09:33, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
But for configuration everyone anyway uses
âCoufigurationOfâ¦â asClass load
I wasnât aware that #asClass existed⦠;)
You are a Noob, Max ;-)
Maybe 'Foo' as: Class -> String>>as: aBehavior ^aBehavior fromString: self -> ^Class fromString: 'Foo' or something like that?
no?
Uko
On 24 Feb 2015, at 08:57, stepharo <stepharo@free.fr> wrote:
Doru and Yuriy
String is not a good API for reflective operations. This is what you
are doing with asPackage.
When I want to access to a class I do Class or Smalltalk globals classNamed: 'Point' a compile method Point>>#x and not 'Point?x' asCompiledMethod I would prefer to have Package named: 'jkljk' than the string behavior.
and what if I want to reflect on code that is remote?
So I maintain that we are polluting String with reflective operations that it should not have.
Stef