Hay algunos en la lista que se desayunan con agua regia, que para los que no
son químicos como yo , es la combinación de ácidos que disuelve el oro. A este mensaje del venerable Ralph, pilar del Smalltalk, le contestaron los malvados > > "I'm just starting to dig in with Spoon" > John Pierce >> "I'm just starting to dig in with Spoon" > getting a handle on Spoon >tim Rowledge > "I'm trying to consume spaghetty with Spoon" > > ;-) > > Cheers, > > SmallSqueak ------ Mensaje reenviado De: Ralph Johnson <[hidden email]> Responder a: The general-purpose Squeak developers list <[hidden email]> Fecha: Thu, 25 May 2006 10:20:41 -0500 Para: The general-purpose Squeak developers list <[hidden email]> Asunto: Name spaces in Spoon I'm just getting into Spoon (hmm, I'm just learning to use Spoon, I'm getting stirred up with Spoon, ... there ought to be a good line here) so I'm probably making some mistakes, but mailiing lists are good for finding that out. My guess is that Spoon doesn't implement the global variable Smalltalk. I'm going to assume that people know that the global variable Smalltalk is implemented as a dictionary (a SystemDictionary, actually) and that global variables are implemented as Associations. SystemDictionary needs to be nested. Each module should have its own "global variable Smalltalk", i.e. its own SystemDictionary that holds the names of all classes. The compiler looks up a name by looking in a dictionary, but a SystemDictionary will look in its parent if it doesn't have its own copy. This way, two modules can each have a class with the same name and the two classes won't collide. I recently read (probably in squeak-dev) a proposal to standardize the way people use prefixes to ensure that class names don't collide. It was something like Prefix::ClassName and the point was that only one or two places in the image had to change to legalize that kind of name. If "Prefix" was the module name, and if we ensured that module names were unique, and if importing a module caused all the classes in the module's local version of Smalltalk to be added to the root version of Smalltalk with this prefix added, then very little would have to change in the programming environment. -Ralph Johnson ------ Fin del mensaje reenviado ___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar correo electrónico a: [hidden email] correo electrónico a: [hidden email] Enlaces de Yahoo! Grupos <*> Para visitar el sitio web del grupo, andá a: http://ar.groups.yahoo.com/group/squeakRos/ <*> Para cancelar tu suscripción a este grupo, enviá un mensaje a: [hidden email] <*> El uso de Yahoo! Grupos está sujeto a las: http://ar.docs.yahoo.com/info/utos.html |
Free forum by Nabble | Edit this page |