From 0ed00a0a41d0f6746cebb3352a5f35b9dd5e2578 Mon Sep 17 00:00:00 2001 From: NovaRain Date: Fri, 22 Jul 2022 22:23:27 +0800 Subject: [PATCH] Minor edits to sslc document --- artifacts/scripting/compiler/sslc_readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artifacts/scripting/compiler/sslc_readme.md b/artifacts/scripting/compiler/sslc_readme.md index 77aefa50..6a649830 100644 --- a/artifacts/scripting/compiler/sslc_readme.md +++ b/artifacts/scripting/compiler/sslc_readme.md @@ -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`)