add forwarding of methods like getindex, getproperty etc.#94
add forwarding of methods like getindex, getproperty etc.#94hhaensel wants to merge 5 commits intoJuliaGizmos:masterfrom
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
@nospecializein 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?