[squeak-dev] Can i has underscores? :)

Alexander Lazarević laza at blobworks.com
Wed Apr 14 10:44:12 UTC 2010


2010/4/14 Igor Stasenko <siguctua at gmail.com>:
> Is there an option to use a per-class setting, instead/in addition of
> a system-wide one?

Haven't tested this but Behavior>>allowUnderscoreSelectors suggests so:

	"Return true if the receiver and its subclasses should be allowed to
use underscore in selectors. Returning nil here means that the
compiler should use the system-wide default preference. Also see
#allowUnderscoreAssignments.

	Combinations: If both preferences are false, underscore is illegal.
If both preferences are true, underscore assignment needs the be
surrounded by spaces and a single underscore cannot be used as
selector."
	^nil

Alex



More information about the Squeak-dev mailing list