[Slackers] Slang v1.4 released
Magnus Lind
magli143 at gmail.com
Sun Jul 2 16:11:31 CDT 2006
Steve Judd wrote:
> Just a short note that slangv1.4 (which is b1.22) is available on the web
Great release, I've been trying it out for a few hours today and all
array pointer stuff I need/want to do work as expected :).
A question: The following code generates some warnings about "Fewer dims
than expected". Are all instances of this warning correct? I seem to be
unable to avoid it whenever I try to assign the location of an array to
an array pointer.
---------------------------------------
ubyte str(10)
ubyte ^strp(10)
strp = #"test1"
strp = #str
strp = str
test(#"test2")
test(str)
test(#str)
test(strp)
sub test(ubyte ^outdata(0))
endsub
---------------------------------------
Also, I seem to have found a bug. However its no big deal since its easy
to work around. Here's a short example that provokes a "hey cool, a
phase error" message from the compiler:
---------------------------------------
ubyte i, j
ubyte str(10)
if 0<1
str(i) = str(j)
endif
---------------------------------------
while this example doesn't:
---------------------------------------
ubyte i, j
ubyte str(10)
if 0<1
j = str(j)
str(i) = j
endif
---------------------------------------
Finally, how about that big endian stored int type (16 bit signed, for
BASIC interoperability)? Would it be much work? Is it something that I
can do myself by modifying slangdef/userdef or is the type stuff
embedded deeper in the language core?
/Regards
Magnus Lind
More information about the Slackers
mailing list