On Wednesday, 21 November 2018 at 03:05:07 UTC, Neia Neutuladh
wrote:
Virtual function calls have to do a dereference to figure out
which potentially overrided function to call.
"have to do a dereference" in terms of "dereference" as language
semantic: yes.
"have to do a dereference" in terms of "dereference" as reading
from memory: no. If you have proof of the runtime type of an
object, then you can use that information to have the CPU call
the overrided function directly without reading from memory.
-Johan
- Re: Why does nobody seem ... Steven Schveighoffer via Digitalmars-d-learn
- Re: Why does nobody ... Jordi GutiƩrrez Hermoso via Digitalmars-d-learn
- Re: Why does nob... Steven Schveighoffer via Digitalmars-d-learn
- Re: Why does... Jonathan M Davis via Digitalmars-d-learn
- Re: Why does... Johan Engelen via Digitalmars-d-learn
- Re: Why ... Steven Schveighoffer via Digitalmars-d-learn
- Re:... Johan Engelen via Digitalmars-d-learn
- ... Neia Neutuladh via Digitalmars-d-learn
- ... Johan Engelen via Digitalmars-d-learn
- ... Patrick Schluter via Digitalmars-d-learn
- ... Johan Engelen via Digitalmars-d-learn
- ... Steven Schveighoffer via Digitalmars-d-learn
- ... Timon Gehr via Digitalmars-d-learn
- Re:... NoMoreBugs via Digitalmars-d-learn
- Re: Why ... Jonathan M Davis via Digitalmars-d-learn
- Re: Why ... Johan Engelen via Digitalmars-d-learn
- Re:... Kagamin via Digitalmars-d-learn
- Re:... Jonathan M Davis via Digitalmars-d-learn
- Re: Why does... Tony via Digitalmars-d-learn