Steevee28 wrote: 
> Question: @mrw do you think that a -userdata- type in Lua can be
> implemented along with a metatable properly overloading all required
> operators in such a way, that -no code changes at all- would be required
> on Lua side???

That was my first thought. I think it probably is possible, but the
devil will be in the detail, and requires proper study. One would define
a 'fallback' operation, I believe.

One detail is that the overhead of doing it would be increased relative
to simple number comparisons[1]. Would this adversely impact performance
on Radio/Touch/Controller ? I simply do not know. Perhaps not, but there
must be overhead incurred in despatching the 'fallback'.

[1] And they will be integer comparisons, by virtue of the lua "integer
patch".


------------------------------------------------------------------------
mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
View this thread: http://forums.slimdevices.com/showthread.php?t=111650

_______________________________________________
Radio mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/radio

Reply via email to