Skip to content

Implement cast-to-iface #1437

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
marijnh opened this issue Jan 5, 2012 · 1 comment
Closed

Implement cast-to-iface #1437

marijnh opened this issue Jan 5, 2012 · 1 comment

Comments

@marijnh
Copy link
Contributor

marijnh commented Jan 5, 2012

myvalue as myiface should, if myvalue is of a type that has an impl of myiface in scope, copy the value into a boxed representation, along with the dict needed to treat it as myiface. Values of such a type can have methods called on them, which will be resolved through the dict.

This depends on #1436

@ghost ghost assigned marijnh Jan 5, 2012
marijnh added a commit that referenced this issue Jan 6, 2012
marijnh added a commit that referenced this issue Jan 8, 2012
marijnh added a commit that referenced this issue Jan 9, 2012
They appear to log okay now, but I can't promise much beyond that.

@pcwalton If you feel like taking a look, I'd be grateful. Interfaces are
boxes containing a (tydesc, dict, value_of_any_type) tuple, where the leading
tydesc describes the whole tuple.

Issue #1437
marijnh added a commit that referenced this issue Jan 9, 2012
@marijnh
Copy link
Contributor Author

marijnh commented Jan 9, 2012

Well, they appear to work! I'll file more specific issues when problems come up.

@marijnh marijnh closed this as completed Jan 9, 2012
@marijnh marijnh removed their assignment Jun 16, 2014
ticki added a commit to ticki/rust that referenced this issue Dec 30, 2015
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Update intrinsics table

* Update trigonometry tests linked in documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant