Difference between revisions of "Operator Reference"

220 bytes added ,  05:20, 18 May 2012
imported>Jlundin
 
imported>Tox2ik
Line 65: Line 65:
; i will get the string "Hello World"
; i will get the string "Hello World"
i = "Hello " + "World"
i = "Hello " + "World"
</source>
<br>
The next example ''will not compile'' as perhaps expected because the minus sign is also used for negation
<source lang="papyrus">
int x
int y
x = 22
y = x-1 ; compiler: no viable alternative at input 'x'
</source>
</source>


Anonymous user