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
For @gapwrap we could teach it to auto-convert arguments to GapObj if necessary. So for example, if we have
GAP.@wrapIsCyclic(x::GapObj)::Bool
then the funtion this generates could be made equivalent to the following (ignoring for simplicity of the argument the optimizations performed by GAP.@wrap):
Note that it inserted GapObj(x) instead of x to force the argument to be a GapObj. Of course if the argument type is something different, e.g. ::Any we don't need this. (We can discuss what to do about other types like e.g. GAPInt or GAP.Obj, but these are less common)
For @gapattribute we could add a variant of this macro to Oscar which checks for GAPWrap instead of (or in addition to) GAP.Globals, so that we can rewrite
For
@gapwrap
we could teach it to auto-convert arguments toGapObj
if necessary. So for example, if we havethen the funtion this generates could be made equivalent to the following (ignoring for simplicity of the argument the optimizations performed by
GAP.@wrap
):Note that it inserted
GapObj(x)
instead ofx
to force the argument to be aGapObj
. Of course if the argument type is something different, e.g.::Any
we don't need this. (We can discuss what to do about other types like e.g.GAPInt
orGAP.Obj
, but these are less common)For
@gapattribute
we could add a variant of this macro to Oscar which checks forGAPWrap
instead of (or in addition to)GAP.Globals
, so that we can rewriteas something like this (the
::Bool
is now redundant as theIsCyclic
wrapper already has it)or indeed, when combined with the changes to the
@wrap
macro, toThe text was updated successfully, but these errors were encountered: