-
Notifications
You must be signed in to change notification settings - Fork 67
OpenXION 1.3 Release Notes
OpenXION 1.3 is the latest release version of OpenXION, the reference implementation of XION, the open scripting language based on HyperTalk. Version 1.3 introduces several new features and fixes major issues with lists and containers.
Use the lastly
construction in repeat blocks to execute code when the loop terminates normally.
-- the following prints "done" because the loop terminates normally
repeat with x = 1 to 10
put x
lastly
put "done"
end repeat
-- the following does not print "done" because the loop terminates abnormally
repeat with x = 1 to 10
put x
if x is 5 then exit repeat
lastly
put "done"
end repeat
Use dictionaries to map strings to values. Use braces to indicate dictionary literals. Use the entry
chunk type to manipulate dictionaries.
local d as dictionary
put {
"a" = "apple"
"b" = "raise"
} into d
put entry "a" of d
put "kreative" into entry "c" of d
put d
Use references to pass containers around without using string literals or the value
function.
Use the atob
and btoa
functions to encode and decode data in Base64, ASCII85, and other encodings.
Use the trReplace
and trReplaceAll
functions to perform tr
substitutions.
Home - Downloads - Installation - Sample Code