The only information I can find in the UTYPE data type! "not yet documented for R3" and "user data type", still giving the hope that I can break out of the Rebol canon from predefined data types and formulate the polymorphism of my functions in a simpler way. Just ... I don't know how to deal with UTYPE !. Attempt:
make utype! <2nd-arg>
with several types of arguments (including an object) invariably leads to the error "Script: invalid argument: <2nd-arg>".
So how to work with it? Is this feature implemented at all? And if not, is there any information on how it should work?
By the way, I know well that home valid data types can be modeled with constructs like:
make object! [ class: ... value: ... ]
Supplement written on November 8th:
A game with UTYPE effects! HELP:
>> foo!: make utype! [[] [random: func [value] [42]]] >> type? foo! == utype! >> ? echo USAGE: ECHO target DESCRIPTION: Copies console output to a file. ECHO is a native value. ARGUMENTS: REBOL System Error: REBOL System Error #1224: assertion failed Program terminated abnormally. This should never happen. Please contact www.REBOL.com with details.
(2.101.0.2.5 on the lion). Of course, something happens under the hood.
types rebol rebol3
Memophenon
source share