Bug: operations on ImmutableCintX should not return immutable types #19
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
TLDR:
The expected behavior is that
a
should be anI32
here.Note that the presented behavior works fine if we multiple immutable value with a "bigger" or "stronger" type. E.g.:
This can be solved in two ways:
Mutable types should be considered as "stronger" in https://github.com/disconnect3d/cint/blob/master/cint/cint.py#L59-L66
Immutable types should implement
__i...__
magic methods and return mutable types; though this might be counter-intuitive?The text was updated successfully, but these errors were encountered: