Garth Goldwater
07/04/2020, 5:51 PMGarth Goldwater
07/04/2020, 5:53 PMTudor Girba
07/04/2020, 5:55 PMGarth Goldwater
07/04/2020, 5:57 PMTudor Girba
07/04/2020, 5:58 PMGarth Goldwater
07/04/2020, 5:59 PMGarth Goldwater
07/04/2020, 6:00 PMLargeInteger >> // anInteger
"Primitive. Divide the receiver by the argument and return the result. Round the result down towards negative infinity to make it a whole integer. Fail if the argument is 0. Fail if either the argument or the result is not a SmallInteger or a LargePositiveInteger less than 2-to-the-30th (1073741824)."
<primitive: 32>
^ super // anInteger
so… i get that you’re sending 32 to the object primitive … when does that message send get executed? on instance creation? or just during queries?Tudor Girba
07/04/2020, 6:01 PMprimitive: is a message. 32 is an argument.Garth Goldwater
07/04/2020, 6:01 PMGarth Goldwater
07/04/2020, 6:01 PMTudor Girba
07/04/2020, 6:01 PMprimitive: you will get the locations in code that are using this message as pragma.Tudor Girba
07/04/2020, 6:02 PM<primitive: 32> would be equivalent to @primitive(32) in Java.Tudor Girba
07/04/2020, 6:04 PM#primitive: gtPragmas in a PlaygroundGarth Goldwater
07/04/2020, 6:07 PMprimitive the argument gtPragmas and getting a list of all the methods that use primitives?Garth Goldwater
07/04/2020, 6:08 PMTudor Girba
07/04/2020, 6:22 PMTudor Girba
07/04/2020, 6:22 PMQuerying Code