Created
July 30, 2014 03:34
-
-
Save keyboardspecialist/4d2bcf9d460ec9967ce4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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