The Dink Network

Reply to Re: sp_foo(bar, -1);

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 17th 2004, 01:19 PM
wizardg.gif
Paul
Peasant He/Him United States
 
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.