##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September, 2016 # Modified: 2016-10-03/22:47-0400 ##+ # # cset-function.icn, Demonstrate the convert to cset function # record makefail(a,b,c) procedure main() # convert a string write("convert \"xyzzy\" to cset") write(cset("xyzzy")) # convert a number write("convert 3.141 to cset") write(cset(3.141)) # attempt to convert a record R := makefail(1,2,3.0) if not write(cset(R)) then write("record cannot be converted") end