CheckForSigned

31 views
Skip to first unread message

Elliotte Harold

unread,
Aug 16, 2008, 1:15:33 PM8/16/08
to jsr...@googlegroups.com
The CheckForSigned annotation indicates that values passed may be
negative and that the method should consider this before executing code.

How important is this? When would I use it? My default assumption is
that any method that accepts a numeric value may accept a negative
number unless specifically indicated otherwise.

For instance would I use this or @Signed or neither on a

1. Square root method (assume no complex numbers or NaN)
2. Absolute value method
3. IncrementByOne method

--
Elliotte Rusty Harold elh...@metalab.unc.edu
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/cafeaulaitA

Reply all
Reply to author
Forward
0 new messages