[squeak-dev] The Trunk: Collections-eem.992.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Wed Mar 2 06:59:40 UTC 2022


:-D 


Am 01.03.2022 21:40:06 schrieb commits at source.squeak.org <commits at source.squeak.org>:
Eliot Miranda uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-eem.992.mcz

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

Name: Collections-eem.992
Author: eem
Time: 1 March 2022, 12:39:53.850609 pm
UUID: 677dd86e-ae58-41d3-b125-af837d2cdb61
Ancestors: Collections-mt.991

Add some missing features to the imfamous postcard.

=============== Diff against Collections-mt.991 ===============

Item was changed:
----- Method: Text class>>codeSample (in category 'filler text') -----
codeSample

^ '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, character, symbol,
+ string, integer, float, 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."
- (but not an instance variable), uses literals (array, character,
- symbol, string, integer, float), uses the pseudo variables true,
- false, nil, self, and super, and has sequence, assignment, return
- and cascade. It has both zero argument and one argument blocks."

| y |
true & false not & (nil isNil) ifFalse: [self halt].
y := self size + super size.
+ #($a #a ''a'' "a" 1 1.0 nil true false), { #[65]. thisContext. nil. true. false }
+ do: [ :each | | class |
+ class := each class.
- #($a #a ''a'' "a" 1 1.0)
- do: [ :each |
Transcript
+ show: (class name);
- show: (each class name);
show: '' ''].
^ x < y'!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220302/28f987c6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 204559 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220302/28f987c6/attachment-0001.png>


More information about the Squeak-dev mailing list