[REBOL] How to check validity of types ?
From: coussement::c::itc::mil::be at: 15-Jan-2001 10:44
I would like to check if a provided value meets pre-defined type
So I define the valid types into a block 'b:
>> b: [integer! string!]
== [integer! string!]
>> first b
>> value: make integer! 1
>> type? value
And I check the requirement:
>> (type? value) = first b
Of course the assumed answer was 'right...
What did I wrong ? Is there another way to get what I want ? Any idea,
thx a lot for answering