-
When generating C++ with `derive_eq=true` the implementation of the equality operator is wrong when using type aliases or `#[repr(transparent)]` structs, e.g.:
```rust
pub type Bla = [u8; 12];
…
-
Issue:
The Transform2D `*` operator does not catch the type of a variable, but will handle an inline `Vector2`.
My suspicion is the order the `*` overloads are setup is causing some issue for han…
-
Following the same logic that led to its inclusion into C++20: https://devblogs.microsoft.com/cppblog/simplify-your-code-with-rocket-science-c20s-spaceship-operator/
- `` three-way comparison is a …
-
There is already the possibility to trap certain operators on objects and similar (e.g. `()` or `new`) by using Proxy traps. For consistency it would seem sensible to put the overloading of other oper…
-
@cynthia raises in [his presentation](https://www.w3.org/2020/06/machine-learning-workshop/talks/machine_learning_in_web_architecture.html) a limitation of JavaScript for ML processing:
> Due to the …
-
# Suggestion
## 🔍 Search Terms
Operators, operator types, operator overloading
## ✅ Viability Checklist
My suggestion meets these guidelines:
* [x] This wouldn't be a breaking change in…
ghost updated
8 months ago
-
Hi! While Polygeist seems to have good support for structs, member functions and templating, I came across issues when trying to overload built-in operators.
A simple case is:
```
struct Pair {
…
-
FStar.Int defines `op_Slash` to be "round towards zero" division. Meanwhile, `Prims.op_Division` is Euclidean division. This means that depending on whether or not you have `open FStar.Int` the semant…
-
Order dependent – switching the enum declarations makes it work. Probably related to some other existing issue(s), but I didn't find any exact one.
```hx
function main() {
var a:A = null;
a >> B…
-
**V version:** Latest commit
**OS:** WSL 2
**What did you do?**
```v
struct Foo {
f int
}
fn (f &Foo) + (f1 &Foo) &Foo {
return &Foo{f:f.f+f1.f}
}
f := &Foo{2}
g := &Fo…