[squeak-dev] The Trunk: Collections-ct.999.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Mar 28 20:09:06 UTC 2022


Christoph Thiede uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.999.mcz

==================== Summary ====================

Name: Collections-ct.999
Author: ct
Time: 28 March 2022, 10:08:58.886426 pm
UUID: d938acc0-5012-9649-960f-9b374a010b83
Ancestors: Collections-ct.998

Restores line breaks in Text codeSample that are required indeed for the FontImporterTool.

=============== Diff against Collections-ct.998 ===============

Item was changed:
  ----- Method: Text class>>codeSample (in category 'filler text') -----
  codeSample
  
+ 	self flag: #linebreaks. "Samples are used in FontImporterTool and must contain manual linebreaks (visually stable example texts per line)."
  	^ 'exampleWithNumber: x
+ 	"A method that illustrates every part of Smalltalk method syntax
+ 	 including primitives. It has unary, binary, and keyboard messages;
+ 	declares arguments and temporaries; accesses a global variable
+ 	(but not an instance variable); uses literals (array, nested array,
+ 	character, symbol, string, integer, float, scaled decimal, and byte
+ 	array); uses the pseudo variables nil, true, false, self, super, and
+ 	thisContext; shows that within a literal array nil, true, and false are
+ 	symbols not pseudo variables; and has sequence, assignment,
+ 	return, cascade, and tuple (array) creation. It has both zero
+ 	argument and one argument blocks, and has a block temporary."
- 	"A method that illustrates every part of Smalltalk method syntax including primitives. It has unary, binary, and keyboard messages; declares arguments and temporaries; accesses a global variable (but not an instance variable); uses literals (array, nested array, character, symbol, string, integer, float, scaled decimal, and byte array); uses the pseudo variables nil, true, false, self, super, and thisContext; shows that within a literal array nil, true, and false are symbols not pseudo variables; and has sequence, assignment, return, cascade, and tuple (array) creation. It has both zero argument and one argument blocks, and has a block temporary."
  	<primitive: ''primitiveCopyBits'' module: #BitBltPlugin error: ec>
  	| y |
  	true & false not & (nil isNil) ifFalse: [self halt].
  	y := self size + super size.
  	#($a #a ''a'' "a" (1 1.0 1.0s2) nil true false), { #[65]. thisContext. nil. true. false }
  		do: [ :each | | class |
  			class := each class.
  			Transcript
  				show: (class name);
  				show: '' ''].
  	^ x < y'!



More information about the Squeak-dev mailing list