You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generic version is still experimental
Its purpose is to detect the overloaded version from arguments
Here are some failing cases
from implot
M.PushPlotStyleVarFloat=lib.igPushPlotStyleVarFloatM.PushPlotStyleVarInt=lib.igPushPlotStyleVarIntfunctionM.PushPlotStyleVar(a1,a2) -- generic versionif (ffi.istype('float',a2) ortype(a2)=='number') thenreturnM.PushPlotStyleVarFloat(a1,a2) endif (ffi.istype('int',a2) ortype(a2)=='number') thenreturnM.PushPlotStyleVarInt(a1,a2) endprint(a1,a2)
error'M.PushPlotStyleVar could not find overloaded'end
It is imposible to discriminate float from int when it is a Lua number. In this cases generic version cannot be used and overloaded name should be used.
Trying to work a solution, suggestions are welcome.
The text was updated successfully, but these errors were encountered:
Generic version is still experimental
Its purpose is to detect the overloaded version from arguments
Here are some failing cases
from implot
It is imposible to discriminate float from int when it is a Lua number. In this cases generic version cannot be used and overloaded name should be used.
Trying to work a solution, suggestions are welcome.
The text was updated successfully, but these errors were encountered: