[Bug-apl] Complex minus float gives wrong result

2015-10-13 Thread Kevin Anderson
Subtract with a complex on the left and a float on the right acts as if the operands were swapped: 2J8 - 3.0 1J¯8 3.0 - 2J8 1J¯8 However, complex minus int or int minus complex is OK: 2J8 - 3 ¯1J8 3 - 2J8 1J¯8 FloatCell.cc::bif_subtract is executing "return A->bif_subtract(Z, th

[Bug-apl] UserFunction_header::remove_duplicate_local_var

2015-11-20 Thread Kevin Anderson
Suggest: while(pos < local_vars.size(); ++pos) {if (sym == local_vars[pos]) {local_vars[pos] = local_vars.back(); local_vars.pop_back();}}instead of: for (; pos < local_vars.size(); ++pos) {if (sym == local_vars[pos]) {local

[Bug-apl] UserFunction_header::remove_duplicate_local_var

2015-11-21 Thread Kevin Anderson
Sorry about that last; accidentally sent in mid-compose! Here's how it should have read. In remove_duplicate_local_var, Suggest: while (pos < local_vars.size(); ++pos) {if (sym == local_vars[pos]) {local_vars[pos] = local_vars.back(); local_vars.pop_back();