|
|
|
[
Permlink
| « Hide
]
Strife Onizuka added a comment - 13/Jun/07 02:21 PM
I happen to agree, the type checking has always been too anal for even me.
I completly agree.
But, it may be a bit harder than that.. Since the "0" is likely casted to integer at compile time, it would require that LSL gain a little more type flexibility. Probably, best to wait till Mono overhaul. Please allow time-saving typeless variables (javascirpt/php/etc.). Well, the problem is definitely that "0" is of type integer, but we know from the error message that llParticleSystem and llSetPrimitiveParams check their types at run-time. The type-checking code could be relaxed to munge between numerical types as necessary, without changing the actual LSL interpreter or compiler.
PSYS_SRC_TARGET_KEY requires the input to be in key format. I tried it with a string literal earlier tonight, and it was complaining about an error. Particularly annoying, and this is very inconsistent with a lot of other functions.
I think the compiler should sort them out. bump!
Any idea if this will be fixed in the mono client release? It's rather frustrating. When triaging this I investigated the code to see how hard it would be to implement this. It was so easy I just did it on the side while simultaneously attending some meeting. Dunno when this will get deployed.
Glad to see its finally getting fixed. Thanks andrew!
I had written this one off, good to see it's getting addressed.
Ok, you can now use:
//... PSYS_SRC_BURST_RADIUS, (integer)"three and a bit", //.. and the script will make no objection. It may be a small fix, but it really was annoying. ======= Second Life 1.23.5 (136262) Oct 14 2009 12:08:26 (Second Life Release) You are at 255437.2, 256507.8, 35.1 in Morris located at sim3008.aditi.lindenlab.com (216.82.49.220:12035) CPU: Intel Core 2 Series Processor (2401 MHz) libcurl Version: libcurl/7.18.1 OpenSSL/0.9.8j zlib/1.2.3 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||