Multiple distinct objects: Difference between revisions
m
→{{header|Sidef}}: removed the map example, which is bad practice in this particular case
No edit summary |
m (→{{header|Sidef}}: removed the map example, which is bad practice in this particular case) |
||
Line 836:
=={{header|Sidef}}==
<lang ruby>[Foo.new] * n; # incorrect (only one distinct object is created)</lang>
<lang ruby>n.of {Foo.new}; # correct</lang>
=={{header|Smalltalk}}==
|