Skip to content

Commit

Permalink
Improving comments in EnvironmentTests.st
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlopez committed Dec 1, 2012
1 parent d197a3c commit d385954
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Src/AjTalk.Tests/AssertTests/EnvironmentTests.st
Expand Up @@ -59,7 +59,11 @@ Object subclass:#MyClass
[(env at: #MyClass) isNil not] assert.
[(Smalltalk at: #MyClass) isNil] assert.

"Compile class method to get the current environment MyGlobal"
"Compile class method to get MyGlobal from its environment
(at MyClass creation time:
each class has an Scope pointing to the environment that was current
at the time of class definition. The 'globals' in their methods are resolved using that
scope"

MyClass class compile: 'global ^MyGlobal'.

Expand Down

0 comments on commit d385954

Please sign in to comment.