Add ability to define functions with dashes in name
This commit is contained in:
@@ -65,12 +65,12 @@ repeat 6 times { i in
|
||||
print {"brktest: " + (str $i) + " (2)"}
|
||||
}
|
||||
|
||||
define hi {
|
||||
define hello-x {
|
||||
print {"Hello, " + $_args[""]}
|
||||
return {"Hello, " + $_args[""]}
|
||||
print "Something isn't right"
|
||||
}
|
||||
|
||||
hi "Function"
|
||||
set f to (hi "World")
|
||||
hello-x "Function"
|
||||
set f to (hello-x "World")
|
||||
print {"Returned: " + $f}
|
||||
Reference in New Issue
Block a user