doc: sample: add comma separators between complex-msg args
This commit is contained in:
@@ -2,11 +2,11 @@ y = 1 + 2 * 3 / 4 * 5 - 6 + 7 multiplyBy:2.
|
|||||||
z = w = 2 + 3 multiplyBy:2.
|
z = w = 2 + 3 multiplyBy:2.
|
||||||
x = (((1 + 2 * 3) multiplyBy:3) add: 5) + 2.
|
x = (((1 + 2 * 3) multiplyBy:3) add: 5) + 2.
|
||||||
x = ((1 + 2 * 3) multiplyBy:3).
|
x = ((1 + 2 * 3) multiplyBy:3).
|
||||||
p = 5 multiply(by:3 add:(2 + 1)).
|
p = 5 multiply(by:3, add:(2 + 1)).
|
||||||
q = 10 squared squared.
|
q = 10 squared squared.
|
||||||
|
|
||||||
p1
|
p1
|
||||||
setAge:2 squared squared + 4 squared multiply(by:2 add:4 + 1 * 3)
|
setAge:2 squared squared + 4 squared multiply(by:2, add:4 + 1 * 3)
|
||||||
in:"mon" + "ths".
|
in:"mon" + "ths".
|
||||||
|
|
||||||
m = xz multiply(by:3 add:2) squared.
|
m = xz multiply(by:3 add:2) squared.
|
||||||
@@ -19,7 +19,7 @@ x = OrderedCollection new
|
|||||||
add: 6;
|
add: 6;
|
||||||
yourself.
|
yourself.
|
||||||
|
|
||||||
age = Person new(name:"John Doe" age:34)
|
age = Person new(name:"John Doe", age:34)
|
||||||
setAge:144 inUnit:"months";
|
setAge:144 inUnit:"months";
|
||||||
ageInMonths.
|
ageInMonths.
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ x = 5.
|
|||||||
q = 10 if x > 2 else 20.
|
q = 10 if x > 2 else 20.
|
||||||
q = if x > 2 then 10 else 20 end.
|
q = if x > 2 then 10 else 20 end.
|
||||||
|
|
||||||
cout put:5 multiply(by:5 add:2) if x > 2.
|
cout put:5 multiply(by:5, add:2) if x > 2.
|
||||||
|
|
||||||
if x > 2 then
|
if x > 2 then
|
||||||
cout put:"Greater"
|
cout put:"Greater"
|
||||||
|
|||||||
@@ -1,2 +1,36 @@
|
|||||||
z = 32.
|
y = 1 + 2 * 3 / 4 * 5 - 6 + 7 multiplyBy:2.
|
||||||
cout put:"iteration" while z > 0
|
z = w = 2 + 3 multiplyBy:2.
|
||||||
|
x = (((1 + 2 * 3) multiplyBy:3) add: 5) + 2.
|
||||||
|
x = ((1 + 2 * 3) multiplyBy:3).
|
||||||
|
p = 5 multiply(by:3, add:(2 + 1)).
|
||||||
|
q = 10 squared squared.
|
||||||
|
|
||||||
|
p1
|
||||||
|
setAge:2 squared squared + 4 squared multiply(by:2, add:4 + 1 * 3)
|
||||||
|
in:"mon" + "ths".
|
||||||
|
|
||||||
|
m = xz multiply(by:3 add:2) squared.
|
||||||
|
|
||||||
|
m = xz multiply(by:3 add:2); squared.
|
||||||
|
|
||||||
|
x = OrderedCollection new
|
||||||
|
add: 2;
|
||||||
|
add: 4;
|
||||||
|
add: 6;
|
||||||
|
yourself.
|
||||||
|
|
||||||
|
age = Person new(name:"John Doe", age:34)
|
||||||
|
setAge:144 inUnit:"months";
|
||||||
|
ageInMonths.
|
||||||
|
|
||||||
|
x = 5.
|
||||||
|
q = 10 if x > 2 else 20.
|
||||||
|
q = if x > 2 then 10 else 20 end.
|
||||||
|
|
||||||
|
cout put:5 multiply(by:5, add:2) if x > 2.
|
||||||
|
|
||||||
|
if x > 2 then
|
||||||
|
cout put:"Greater"
|
||||||
|
else
|
||||||
|
cout put:"Less"
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user