>Count returns the # of elelments in the array, regardless of the content.
>You could create 0-terminated strings in JAL, but I have not seen this
>yet. The only 'strings' I use constant strings for printing, with no
>termination.
>It would be easy to add support for zero-terminated strings in
>print.jal though. On the other hand I would advice all string routines
>also handle strings without termination.

the string that i prefer is null terminated string, and more easily
manipulated.
like this;

ostring[255]  ---> create blank array string, MAX_STRING may be set to
255, thats the limit i guess,

x = len (ostring) ; finds string length,


>Also have a look at jascii.jal. Maybe it is a good idea to join this
>into the character lib and have string lib too.

i get an idea for this, we could map "keyboard keys" in this way and
implement PS2 keyboard codes.

I hope kyle could make alias for types,
so we could create something like:

zzz => byte*255
var zzz x

Regards,
Hafiz.

On Feb 15, 2:37 am, Joep Suijs <[email protected]> wrote:
> 2010/2/14 mattschinkel <[email protected]>:> A string lib would 
> require a character lib,
>
> Probably true...
>
> > so I would agree with
> > putting it all in one "strings.jal" lib.
> > Otherwise the user may have
> > to include character.jal before using strings.jal
>
> Not true. string.jal can include an other lib if it is required.
>
> Also have a look at jascii.jal. Maybe it is a good idea to join this
> into the character lib and have string lib too.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to