Hi =DEemseddin,

No, there is no formal way to check for a particular
object type in the function specification.
You have to do the checking yourself.

Regards,

Anton.

=DEemseddin Moldibi [ Bircom ] wrote:
> Hi, is it possible to force a function get a parameter which is a =3D
> user-defined object type? I guess no, but I would like to be sure. =3D
> (sorry for bad english)
> Look at example below please,
>=20
> My-Object: [name: "" age: 0]
> F: func [a [My-Object!]] [...]
>=20
> I know it is possible to check type of "a" in runtime and throw an erro=
r =3D
> if it is not in my-object type. But is there a way to do this as above?
> Thanks
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to