lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Duboucher Thomas wrote:
> 
> 	Ok, I have a uglier dirty hack in mind! Why not casting the two first
> char of the typename into a short. You get a unique number representing
> each type without having to use string comparison. ;)
> 

Or just: if (t1[1]==t2[1] && t1[2]==t2[2])
Slightly slower, but who cares? It's an error message.

-- 
- tom
telliamed@whoopdedo.org