Skip to content

Implement overloading #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pcwalton opened this issue Jun 21, 2011 · 2 comments
Closed

Implement overloading #535

pcwalton opened this issue Jun 21, 2011 · 2 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)

Comments

@pcwalton
Copy link
Contributor

Synopsis:

mod foo { overload fn f(int x) { log x; } }
mod bar { overload fn f(str s) { log s; } }
import foo::f;
import bar::f;
fn main() {
    f(3);
    f("hello world");
}

Result:

3
hello world
@nikomatsakis
Copy link
Contributor

interfaces now offer a limited form of overloading.

@graydon
Copy link
Contributor

graydon commented Feb 14, 2012

Closing as this is obsolete given ifaces.

@graydon graydon closed this as completed Feb 14, 2012
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
* ARM DSP: Add signed halving parallel sub.

Add:

- `shsub8`: Signed halving parallel byte-wise subtraction.
- `shsub16`: Signed halving parallel halfword-wise subtraction.

* ARM DSP: Signed halving parallel additions.

- `shadd8`: Signed halving parallel byte-wise add.
- `shadd16`: Signed halving parallel halfword-wise add.

* ARM DSP: Signed Dual Multiply Add and Signed Dual Multiply Sub.

- `SMUAD`: Signed Dual Multiply Add.
- `SMUADX`: Signed Dual Multiply Add Reversed.
- `SMUSD`: Signed Dual Multiply Subtract.
- `SMUSDX`: Signed Dual Multiply Subtract Reversed.

* ARM DSP: Restrict to Cortex-A and Cortex-R

Restrict everything to Cortex-A/R till We found a better way manage
thumb* targets.

Add 'dox' to generate docs.

* ARM DSP: fix Markdown documentation

Quote '[' and ']' where are not part of the Markdown syntax.
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* use assert-false instead of nondet for missing functions

* Add a flag to disable the missing function checks, and use it for tests which require it
GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this issue Jul 10, 2024
tgross35 pushed a commit to tgross35/rust that referenced this issue Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

3 participants