-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
aliasing for fields does not work #20610
Comments
fix: #20611 |
Wonderful! Will this also address elements of an alias seq = AliasSeq!(x, y, z);
alias x = seq[0]; |
Unfortunately, not. Wanna submit a bug report? |
In general, I think it might be really useful to make Although, my understanding was that the |
|
Ehhxcellent! |
There are already ambiguities that I struggled to account for in fixing this issue. More aliasing means more trouble with this. Aliasing tries to do too much! Aliasing an expression is better done with a lambda, where it is well defined. The lambda will get inlined, and all will be well. ImportC creates lambdas out of macros that look like expressions. This works quite well. |
Aliases are more often used to refer to types or symbols... In the cases of interest if a lambda was workable, there wouldn't be anything to talk about. |
s.ti
should be equivalent tos.t.i
The text was updated successfully, but these errors were encountered: