[REBOL] User-defined function parameters
From: semseddinm:bircom at: 23-Jan-2009 14:43
Hi, is it possible to force a function get a parameter which is a user-defined object type? I guess no, but I would like to be sure. (sorry for bad english) Look at example below please, My-Object: [name: "" age: 0] F: func [a [My-Object!]] [...] I know it is possible to check type of "a" in runtime and throw an error if it is not in my-object type. But is there a way to do this as above? Thanks