Re: user types vs built-ins

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu