2015-11-09 13:05 GMT+01:00 Sean P. DeNigris <[email protected]>: > Ben Coman wrote > > But Class has an instance variable 'name', > > and Class subclasses --> {ProtoObject class} > > He he, of course. Thanks for the clarification! > > > Ben Coman wrote > > should that instance variable and accessors be renamed to 'classname'? > > YES to a rename! Let's remove all mysterious gotchas for newbies (and me ha > ha). This is an obscure and scary bug, because it prevents all operations > on > the package, so one can not even commit or file out the package. >
Are you sure it would eliminate the gotcha? Can't you trigger it again with self classname: 1? I'd feel a bit safer with some defensive programming (an assert: in class>>#name?). And I like the elegance of AClass name. Thierry > > > > ----- > Cheers, > Sean > -- > View this message in context: > http://forum.world.st/Woe-unto-thee-who-assigns-to-class-side-name-tp4859734p4859900.html > Sent from the Pharo Smalltalk Developers mailing list archive at > Nabble.com. > >
