To get the negative of a value use 

a negated.

Greetz 
  Rob 

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

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

Reply via email to