mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
[FunC] Make all functions impure by default, add "pure" specifier
This commit is contained in:
parent
a3e9e03019
commit
85c60d1263
61 changed files with 3511 additions and 3500 deletions
|
@ -1,13 +1,13 @@
|
|||
global int g;
|
||||
|
||||
_ foo_repeat() impure inline {
|
||||
_ foo_repeat() inline {
|
||||
g = 1;
|
||||
repeat(5) {
|
||||
g *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
int foo_until() impure inline {
|
||||
int foo_until() inline {
|
||||
g = 1;
|
||||
int i = 0;
|
||||
do {
|
||||
|
@ -17,7 +17,7 @@ int foo_until() impure inline {
|
|||
return i;
|
||||
}
|
||||
|
||||
int foo_while() impure inline {
|
||||
int foo_while() inline {
|
||||
g = 1;
|
||||
int i = 0;
|
||||
while (i < 10) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue