I used to have
�� �� �� �� creatingAClassInATemporaryNamespace
�� �� �� �� | testingEnvironment morph |
�� �� �� �� testingEnvironment := SystemDictionary new.
�� �� �� �� ClassBuilder new
�� �� �� �� �� �� �� �� name: #AClassForTesting
�� �� �� �� �� �� �� �� inEnvironment: testingEnvironment
�� �� �� �� �� �� �� �� subclassOf: Object
�� �� �� �� �� �� �� �� type: Object typeOfClass
�� �� �� �� �� �� �� �� instanceVariableNames: ''
�� �� �� �� �� �� �� �� classVariableNames: ''
�� �� �� �� �� �� �� �� poolDictionaries: ''
�� �� �� �� �� �� �� �� category: 'TemporaryTesting'.
How do I do this with Slots?
I tried:
�� �� �� �� creatingAClassInATemporaryNamespace
�� �� �� �� | testingEnvironment morph |
�� �� �� �� testingEnvironment := SystemDictionary new.
�� �� �� �� PharoClassInstaller make: [ :builder |
�� �� �� �� �� �� �� �� builder
�� �� �� �� �� �� �� �� �� �� �� �� superclass: Object;
�� �� �� �� �� �� �� �� �� �� �� �� name: #AClassForTesting;
�� �� �� �� �� �� �� �� �� �� �� �� environment: testingEnvironment;
�� �� �� �� �� �� �� �� �� �� �� �� category: 'TemporaryTesting' ].
but got "key #SystemOrganization not found in SystemDictionary".
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Creating-a-Class-in-a-Temporary-Environment-tp4825963.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.