[Slackers] Sort-of Slang 1.2 is on the page

Steve Judd sjudd at ffd2.com
Sun Feb 19 08:54:54 CST 2006


Hey Jaymz,

Yep, there are two things at work here.  First, with array pointers the
leading ^ is not used -- only with normal type pointers.  I noted this in
the new slangref_tiny but alas not in the thingie I sent out.  Oops.

The second is that the message is actually a warning message, not an error
message.  In Slang you are allowed to use fewer array dimensions than
declared.

After uploading yesterday I fixed it so that array pointers don't generate
that message anymore.  Neither do strings.  Too annoying.  The other
thing I fixed is that if you declare a pointer as an @-var in zero page,

	ubyte ^screen@$fe

then the compiler will use that zp var for the pointer.  In the version
you have, the compiler will stupidly copy from $fe to a new zp location.
This isn't for arrays though, since the zp location for arrays is usually
modified during lookup.

Glad to hear that it works so far though!

cu,

-S

On Sun, 19 Feb 2006, Jaymz Julian wrote:

> Interesting addendum: the following code -
>
> ubyte ^screen($400)
> uint j
> screen=$0400
> for j=0:1024
>         screen(j)=1
> next
> waitchar
>
> actually DOES compile a working binary which does what it should - but
> at the compile stage, it gives an error:
>
> Danger Will Robinson! Line 3: Fewer dims than expected
>
> ... but works anyhow!  odd... but the superflous error is terribly
> confusing :)
>
> 	-- jj
>
> --
> --
> Jaymz Julian - Coder, Visionary, Fat Ass.
> "Hannibal is a serial killer. He only likes to kill and eat people.
>  Very few people have `I want to be killed and eaten' on their cards,
>  so Hannibal is out of a job." - http://cards.sf.net
> _______________________________________________
> Slackers mailing list
> Slackers at starbase.globalpc.net
> http://starbase.globalpc.net/mailman/listinfo/slackers
>


More information about the Slackers mailing list