Reply to Re: sp_foo(bar, -1);
If you don't have an account, just leave the password field blank.
See? It's pretty wierd how it works now, isn't it? And the worst part is that means you can't set sprite most attributs to -1. And for some attributs, eg sp_mx and sp_my, -1 would be a perfectly reasonable value. The tricky thing would be keeping backwards compatable if you changed it (I think).
If I were going to do it (which I'm not) I'd probably do either of these:
1. Allow omiting the -1 but still treat is as a special value if the result of the sp command is being asigned to something [&x = sp_y(1, -1);] but if it's just used as a straight statment [sp_y(1, -1);] then really set it to -1.
2. Keep the sp commands for compatibility by add a new set of functions that work in a cleaner way.
If I were going to do it (which I'm not) I'd probably do either of these:
1. Allow omiting the -1 but still treat is as a special value if the result of the sp command is being asigned to something [&x = sp_y(1, -1);] but if it's just used as a straight statment [sp_y(1, -1);] then really set it to -1.
2. Keep the sp commands for compatibility by add a new set of functions that work in a cleaner way.