in reply to Re^2: xs modifying passed value
in thread xs modifying passed value
I always get em backwards
Easy: If you want to compare characters (strings, char* or char[] if you know C), use the operators made from characters (eq, ne, lt, gt, le, ge, cmp). If you want to compare numbers like in mathematics, use the operators you know from mathematics (==, !=, <, >, <=, >=, <=>).
Alexander
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: xs modifying passed value
by Festus Hagen (Acolyte) on Nov 19, 2012 at 13:31 UTC |