[Pharo-project] [Pharo-Project] Pharo scripting

Cameron Sanders csanders.personal at functional-analyst.com
Tue Jan 20 09:24:49 EST 2009


Gwenael writes:
> here is a small example of the syntax :

	[
	Object subclass: #SaBox
		instanceVariableNames: ''bob''
		classVariableNames: ''''
		poolDictionaries: ''''
		category: ''SandBox''
	]

	SaBox >> initialize
	[
		<category: ''initialize release''>
		<authorInitials: ''him''>
		bob := ''Script test working''.
	]

Why the doubled single-quotes? 
Why use a different notation at all? 

Thanks -- and sorry if this was already explained,
Cam






More information about the Pharo-dev mailing list