Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1,9 @@
include "NSLog.incl"
CFStringRef local fn WelcomeToFutureBasic( person as CFStringRef, location as CFStringRef )
return fn StringWithFormat( @"Welcome %@! Glad you could join us from %@.", person, location )
end fn = NULL
NSLog( @"%@", fn WelcomeToFutureBasic( @"John Codemeister", @"Hawaii" ) )
HandleEvents

View file

@ -10,7 +10,7 @@ procedure testproc(A[]) #: demo to test named parameters
while a := get(A) do # implement named parameters here
(( a ? (v := =!["x","y","z"], =":=") | # valid parameter name?
stop("No parameter ",a)) & # . . no
stop(&output,"No parameter ",a)) & # . . no
((variable(a[1:-2]) := get(A)) | # assign
runerr(205,a))) # . . problem

View file

@ -0,0 +1,7 @@
local function print_name(forename, surname = "Trump").
print($"{forename} {surname}")
end
print_name(forename = "Abraham", surname = "Lincoln")
print_name(surname = "Trump", forename = "Donald")
print_name(forename = "Donald")