Char lib and string lib should be separate. Is it now possible to pass a
string array to a function/ procedure ?

Sunish


On Mon, Feb 15, 2010 at 12:03 AM, Joep Suijs <[email protected]> wrote:

> 2010/2/14 Sebastien Lelong <[email protected]>:
> > A char is just a special string :)
>
> No, it is not. A char is a single value, respreting a symbol that can
> be displayed (or control, like cr)
> A string is an array of chars.
>
> I don't mind if it goes in one file (although I am not in favor), but
> the class of each function should be clear.
>
> @Mohammad
> var byte x[6]={1,1,1,1,0,0} gives an error since the array size does
> not match the # of initialzers.
>
> 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.
>
> Joep
>
>
> Joep
>
> --
> 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]<jallib%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/jallib?hl=en.
>
>

-- 
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