User Tools

Site Tools


pixilang:manual_en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
pixilang:manual_en [2019/02/07 22:21]
nightradio [Basics]
pixilang:manual_en [2019/02/08 08:57] (current)
nightradio [Basics]
Line 73: Line 73:
 <​code>​ <​code>​
 str = "​Hello"​ //"​Hello"​ is the string container with five 8-bit characters (UTF-8 encoding). str = "​Hello"​ //"​Hello"​ is the string container with five 8-bit characters (UTF-8 encoding).
-//This container ​(with string) will be created ​only once, during the bytecode generation. +//This container ​is automatically ​created during the bytecode generation. 
-//You don't need to delete ​them manually. +//You don't need to delete ​it manually. 
-str[ 0 ] = '​h'​ //Change first character from '​H'​ to '​h'​.+str[ 0 ] = '​h'​ //​Change ​the first character from '​H'​ to '​h'​. 
 +print( str, 0, 0 ) //will print the word "​hello"​ on the screen 
 +//The string can be terminated with a null character or the end of a container. 
 +str[ 2 ] = 0 //Replace the char '​l'​ with a zero 
 +print( str, 0, 8 ) //will print the word "​he"​ on the screen
 </​code>​ </​code>​
 <​code>​ <​code>​
pixilang/manual_en.txt · Last modified: 2019/02/08 08:57 by nightradio