user types vs built-ins

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

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?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu