-
Notifications
You must be signed in to change notification settings - Fork 32
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
add forwarding of methods like getindex, getproperty etc. #94
base: master
Are you sure you want to change the base?
Conversation
What more functions could we add to the list of forwarded functions. |
@SimonDanisch |
Sorry, totally dropped the ball on this... @hhaensel I'm not sure if we were miscommunicating, or what happened here but I took from the comments in #77:
That the implementation would be closer to the one in ShaderAbstractions :D What the PR implements here seems pretty different, though (no clean separation between I don't think the default observables should forward array behavior, especially not for something like |
I, indeed, misunderstood what your implementation was supposed to do, my bad.
Actually, your code from line 59 inspired me to include forwarding of array operations. I certainly don't cry to cancel that, because it's difficult to tell where to stop. However, forwarding of
I think the point of defining a One last idea, if forwarding is not an option for the universal |
Shouldn't we use a normal function, for example |
I understand your point. But in that case I would prefer the standard syntax I could, however, think of a more general function |
This is a PR to the discussion on silent assignment #77.
@SimonDanisch
I'm not sure whether I placed all
@nospecialize
in the right places as I'm not an expert on inference (trying to get into it ...)E.g. line 103, I did not place @nospecialize to make the lookup of
:field in fieldnames(T)
faster. Is that notion correct? Moreover, compilation of that code should be fast and there won't be very many types around, so not too big a waste in terms of dispatch tables?