mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Minor edits to sslc document
This commit is contained in:
@@ -234,12 +234,12 @@ Syntax which requires sfall for compiled scripts to be interpreted is marked by
|
||||
- old:
|
||||
```
|
||||
callbackVar := "Node000";
|
||||
callbackVar();
|
||||
call callbackVar;
|
||||
```
|
||||
- new:
|
||||
```
|
||||
callbackVar := @Node000;
|
||||
callbackVar();
|
||||
call callbackVar;
|
||||
```
|
||||
Not many people know that since vanilla Fallout you can call procedures by "calling a variable" containing it's name as a string value. There was a couple of problems using this:
|
||||
- optimizer wasn't aware that you are referencing a procedure, and could remove it, if you don't call it explicitly (can be solved by adding making procedure `critical`)
|
||||
|
||||
+1
-1
@@ -265,7 +265,7 @@ GEM
|
||||
thread_safe (0.3.6)
|
||||
typhoeus (1.4.0)
|
||||
ethon (>= 0.9.0)
|
||||
tzinfo (1.2.9)
|
||||
tzinfo (1.2.10)
|
||||
thread_safe (~> 0.1)
|
||||
tzinfo-data (1.2021.1)
|
||||
tzinfo (>= 1.0.0)
|
||||
|
||||
+2
-2
@@ -242,12 +242,12 @@ Syntax which requires sfall for compiled scripts to be interpreted is marked by
|
||||
- old:
|
||||
```
|
||||
callbackVar := "Node000";
|
||||
callbackVar();
|
||||
call callbackVar;
|
||||
```
|
||||
- new:
|
||||
```
|
||||
callbackVar := @Node000;
|
||||
callbackVar();
|
||||
call callbackVar;
|
||||
```
|
||||
Not many people know that since vanilla Fallout you can call procedures by "calling a variable" containing it's name as a string value. There was a couple of problems using this:
|
||||
- optimizer wasn't aware that you are referencing a procedure, and could remove it, if you don't call it explicitly (can be solved by adding making procedure `critical`)
|
||||
|
||||
Reference in New Issue
Block a user