2015-02-24 9:48 GMT+01:00 Sven Van Caekenberghe <[email protected]>: > > > On 24 Feb 2015, at 09:47, Max Leske <[email protected]> wrote: > > > > > >> On 24 Feb 2015, at 09:33, Yuriy Tymchuk <[email protected]> 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 <[email protected]> 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 > >>> > >> > >> > > > > > > >
