PlayScriptRedux / playscript

PlayScript is an ActionScript compatible compiler and Flash compatible runtime that runs in the Mono/.NET environment
Other
17 stars 9 forks source link

playshell - Display behavior of increment (++ operator) #11

Open sushihangover opened 9 years ago

sushihangover commented 9 years ago

When incrementing a var, the shell shows the pre-increment value as the result/return:

pshell> var i:int = 0;
pshell> i++;
0
pshell> i
1

The csharp shell exhibits the same behavior:

csharp> var i = 0;
csharp> i++;
0
csharp> i
1