You can't expect people to manually null-terminate their strings in a BASIC language, it's just not right™.Kaeru Gaman wrote:what about some EXTRA type for the DataSection?
e.g. name it type .ss
this would lead to
Data.ss
Read.ss MyString.s
the .ss type Dataline could carry
- literal strings in DQuotes, wich will NOT be terminated with delimiters
- numbers that will directly be inserted, to be able to carry controlcodes
then datalines could look this way:maybe that would solve almost the sameCode: Select all
Data.ss "this is the first line", #CRLF, "this is the second line", #CRLF Data.ss "this is some text in quotes:", #DQUOTE, "quote me", #DQUOTE, #CRLF Data.ss "and all the text belong to the same string!", #StringTerminate
and be far easier to implement to IDE and Compiler...
If people want to do that then they can use inline asm, which looks really clean in my opinion:
Code: Select all
Readme.s = PeekS(?MyString)
DataSection
MyString:
!CRLF equ 13, 10
!db "this is the first line", CRLF, "this is the second line", CRLF
!db 'this is some text in quotes:"quote me"', CRLF
!db "and all the text belong to the same string!", 0
EndDataSection