Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

Other programming languages • Re: Basic on Raspberry

$
0
0
I haven't studied the string structure in PureBasic yet. But I remember for sure that in C++ strings end with a null byte. Then this is a shortcoming of C++ too.
I also remembered that many Windows API require a string to be terminated by a null byte unless the string length is explicitly specified.
Probably for compatibility the lines end is null.
In BBC BASIC that is essential to allow strings to contain VDU commands, such as for changing colour, plotting sprites etc.
In BASIC, binary data is typically stored using the DATA keyword. It exists in PureBasic https://www.purebasic.com/documentation ... /data.html

Statistics: Posted by Vasian — Wed Apr 02, 2025 2:26 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles