[Newbies] [Q] A really silly question

Rob Van Pamel rob.vanpamel at telenet.be
Thu May 10 17:22:32 UTC 2007


To get the negative of a value use 

a negated.

Greetz 
  Rob 

-----Oorspronkelijk bericht-----
Van: beginners-bounces at lists.squeakfoundation.org
[mailto:beginners-bounces at lists.squeakfoundation.org] Namens Edgar J. De
Cleene
Verzonden: donderdag 10 mei 2007 19:18
Aan: A friendly place to get answers to even the most basic questions about
Squeak.
Onderwerp: [Newbies] [Q] A really silly question

| a b|
a := 14.
b := - a.
b inspect

is wrong


| a b|
a := 14.
b := 0 - a.
b inspect

is right

Why ?


_______________________________________________
Beginners mailing list
Beginners at lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners



More information about the Beginners mailing list