Re: user types vs built-ins
- Posted by mattlewis (admin) Sep 21, 2016
- 1227 views
katsmeow said...
I have two small code blocks:
-- code1 -- object h1 h1 = "10"
-- code2 -- type test(object x) return x end type test h1 h1 = "10"
Code1 runs, but code2 crashes with a type error. Why doesn't code 2 run?
A type function should return 1 or 0. It's meant for type checking.
Matt