Skip to content

Instantly share code, notes, and snippets.

@keyboardspecialist
Created July 30, 2014 03:34
Show Gist options
  • Save keyboardspecialist/4d2bcf9d460ec9967ce4 to your computer and use it in GitHub Desktop.
Save keyboardspecialist/4d2bcf9d460ec9967ce4 to your computer and use it in GitHub Desktop.
obj := mkobj(upb,fns,a,b,c,d,e,f,g,h,i,j,k) CIN:y, POS:y, NAT:y
This function creates and initialises an object. It definition is as follows:
LET mkobj(upb, fns, a, b, c, d, e, f, g, h, i, j, k) = VALOF
{ LET obj = getvec(upb)
IF obj DO
{ !obj := fns
InitObj#(obj, @a) // Send the init message to the object
}
RESULTIS obj
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment