About removing global variables

stéphane ducasse ducasse at iam.unibe.ch
Mon Nov 29 07:35:27 UTC 2004


but lex

you could have World as a classVariable or

world
	^ World current

and only get this problem in workspaces and we write much more code
in method bodies than in workspace.

> 	World flash
>
> 	World current flash
>
> 	Flasher flash: World current
>
> 	Flasher defaultInstance flash: World current
> 	
> 	| flasher |
> 	flasher _ Flasher new.
> 	flasher flashingAlgorithm: #default.
> 	flasher flashTarget: World current.
> 	flasher beginFlashing.
> 	
>
> In short, let's not to pretty up the language at the expense of ugly
> programs.  Squeak is supposed to be programmed, not just talked about,
> and there will be tradeoffs that are necessary.
>
> -Lex
>




More information about the Squeak-dev mailing list