##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September, 2016 # Modified: 2016-10-03/22:46-0400 ##+ # # constructor.icn, Create a constructor procedure for a new record type # link ximage record one(a,b,c) procedure main() # start with a pre-compiled record r1 := one(1,2,3) write("r1.a ", r1.a) # add a new record type at runtime rc := constructor("newrec", "d", "e", "f") r2 := rc(4,5,6) write("r2.d ", r2.d) write(ximage(r2)) end