Created
December 12, 2010 12:36
Revisions
-
anttih created this gist
Dec 12, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ # I'd like the inner object's methods to have access to Module's `inside` slot. # The new lexicalDo won't cut it since the proto is long gone when the # block/method gets called. Module := Object clone do( inside := 2 Test := Object clone lexicalDo( num := method(inside) numblock := block(inside) setIsActivatable(true) ) Another := Object clone Another numblock := block(inside) setIsActivatable(true) ) test := Module Test clone # neither works test num println test numblock println a := Module Another clone # works a numblock println