Re: Implicit casting issues when binding to C++

  • From: Coda Highland <chighland@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 7 Jul 2012 13:44:37 -0500

> That, again, to me seems incredibly unworkable. Implicit casts are a
> conventience in C, in a scripting language you'd definitely not expect a
> user to have to think about them. The end result would be that, to be on the
> safe side, you'd do proper casting everywhere and the type conversion has
> become obsolete because of it's own limitation. So the mere fact that it
> exists makes it a hazard to its own existence?

The main time to disagree is when those implicit casts represent
objects that SHOULDN'T be mapped in Lua: The script user shouldn't be
expected to deal with QString at all, but should be allowed to pass
Lua strings at all appropriate times.

/s/ Adam

Other related posts: