[Pharo-project] SystemNavigation vs. SystemOrganizer
SystemNavigation default. -> an object that let's you navigate the current system SystemOrganizer default. -> ??? To get what I would expect from above, it seems I need to access the global SystemOrganization. Does anyone else find this confusing? Sean -- View this message in context: http://forum.world.st/SystemNavigation-vs-SystemOrganizer-tp4131010p4131010.... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
2011/12/1 Sean P. DeNigris <sean@clipperadams.com>
SystemNavigation default. -> an object that let's you navigate the current system SystemOrganizer default. -> ??? To get what I would expect from above, it seems I need to access the global SystemOrganization.
Does anyone else find this confusing?
yes ;-) Luc
Sean
-- View this message in context: http://forum.world.st/SystemNavigation-vs-SystemOrganizer-tp4131010p4131010.... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Luc Fabresse wrote
yes ;-)
Should we add: SystemOrganizer>>default ^ SystemOrganization. -- View this message in context: http://forum.world.st/SystemNavigation-vs-SystemOrganizer-tp4131010p4143606.... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
This idea of globals is wrong and not modular. And the idea to use global variable instead of a instance variable makes the system difficult to cut in module. A namespace holds its organization. So it should be moreâ¦. SystemOrganizer>>default "look in the environment that the receiver organizes for the associated organization" ^ self environment organization On Dec 2, 2011, at 12:15 AM, Luc Fabresse wrote:
2011/12/1 Sean P. DeNigris <sean@clipperadams.com> SystemNavigation default. -> an object that let's you navigate the current system SystemOrganizer default. -> ??? To get what I would expect from above, it seems I need to access the global SystemOrganization.
Does anyone else find this confusing?
yes ;-)
Luc
Sean
-- View this message in context: http://forum.world.st/SystemNavigation-vs-SystemOrganizer-tp4131010p4131010.... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Stéphane Ducasse wrote
SystemOrganizer>>default "look in the environment that the receiver organizes for the associated organization" ^ self environment organization
Fix in inbox: SLICE-Issue-5046-SystemOrganizerdefault-to-be-consistent-with-SystemNavigation-SeanDeNigris.1 http://code.google.com/p/pharo/issues/detail?id=5046 I also wrote a test :) -- View this message in context: http://forum.world.st/SystemNavigation-vs-SystemOrganizer-tp4131010p4147249.... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
participants (3)
-
Luc Fabresse -
Sean P. DeNigris -
Stéphane Ducasse