Re: Strings

new topic     » topic index » view thread      » older message » newer message

>
>EU>[Strings]
>EU>Does anyone know how languages like Pascal and Basic etc store their
>EU>strings?
>
>I think Basic stores them as an array characters with the end marked by
>a 0.

In my expreience; Basic more commonly uses a length ( 8 or 16 bit );
this can be tested for by using ...

  A$="Euphoria"+CHR$(0)+"Rules" : PRINT A$

This is obviously much more flexible than zero terminated strings (
asciiz ) as zeroes can be embedded in the strings.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu