-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
std interface reform (#1829): simple #2553
std interface reform (#1829): simple #2553
Conversation
std/io/seekable_stream.zig
Outdated
assert(seek.impl != null); | ||
const aligned = @alignCast(@alignOf(T), seek.impl); | ||
return @ptrCast(*T, aligned); | ||
} |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Please see #130 (comment). I'm closing this pull request because it's not really mergable, but I do consider it to be an invaluable tool in evaluating how to proceed with that issue, once the time comes to do that. 👍 Thank you @tgschultz! (I'm going to copy this comment to the other 2 pull requests, for the benefit of anyone stumbling upon them.) |
A much simpler pattern than #2533. It has but two advantages over the current pattern: