[Truffle] Error adding Complex to Fixnum #2805
Adding Fixnum to Complex works but the reverse doesn't.
Do we need to add a RubyComplex class to add a specialization for this? Or how would you resolve this?
This is used in matrix stdlib.
The text was updated successfully, but these errors were encountered:
This is more complicated that with other types as
Lines 129 to 137 in 49dc6b4
Where that isn't possible, like divide, we do
Lines 552 to 563 in 49dc6b4
@chrisseaton Can you recommend how to add a Specialization like this for a non-core class? e.g. Matrix
How would the guard look? Would the specialization go in FIxnumNodes even though this is non-core?
I need a Fixnum#/ and I think this can be implemented in terms of Fixnum#*
I don't see why
I think you might find that through coercion,
We could do with a solid understanding of this - resist the temptation to special case for
Yes, this is just the
Can you try removing them and see what happens? You need to try running any of the benchmarks as well (do