> On 24 Feb 2015, at 09:48, Sven Van Caekenberghe <s...@stfx.eu> wrote:
> 
> 
>> On 24 Feb 2015, at 09:47, Max Leske <maxle...@gmail.com> wrote:
>> 
>> 
>>> On 24 Feb 2015, at 09:33, Yuriy Tymchuk <yuriy.tymc...@me.com> wrote:
>>> 
>>> But for configuration everyone anyway uses 
>>> 
>>> ‘CoufigurationOf…’ asClass load
>> 
>> I wasn’t aware that #asClass existed… ;)
> 
> You are a Noob, Max ;-)

HA! I’ll show you n00b!

(SystemDictionary allInstances
        detect: [ :dict | dict keys includes: ‘MyClass’ asSymbol ]
        ifNone: [ nil ])
                ifNil: [ nil ]
                ifNotNil: [ :dict | (dict at: ‘MyClass' asSymbol) new ]


xD


> 
>>> 
>>> no?
>>> 
>>> Uko
>>> 
>>>> On 24 Feb 2015, at 08:57, stepharo <steph...@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
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 


Reply via email to