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

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Sat Mar 26 14:36:55 UTC 2022


We don't illustrate some other features yet, though:


#(nesting (arrays ()))

1.2s3


Should we?


Best,

Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org>
Gesendet: Dienstag, 1. März 2022 21:39:55
An: squeak-dev at lists.squeakfoundation.org; packages at lists.squeakfoundation.org
Betreff: [squeak-dev] The Trunk: Collections-eem.992.mcz

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."
         <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 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/20220326/86d15c23/attachment.html>


More information about the Squeak-dev mailing list