[dmd-internals] Is there a reason that inlining happens so early?

David Nadlinger code at klickverbot.at
Tue Nov 27 14:45:12 PST 2012


On Tue, Nov 27, 2012 at 11:28 PM, Brad Roberts <braddr at puremagic.com> wrote:
> git blame is a great tool for this.  Github has a ui on top of it as well,
> though it's slow to traverse backwards in time that way.

A somewhat crude way to check when a piece of code appeared for the
first time is to use »git log -S«, which searches for a given string
being added/removed in a commit:

---
$ git log -S"fd->inlineScan"
commit 7a3c6789b00e04d9b1b13ef69eb43ce0e56cdda3
Author: Brad Roberts <braddr at puremagic.com>
Date:   Thu Jul 2 06:58:45 2009 +0000

    dmd 0.61
---

I like to use it in situations where I want to get a quick idea of all
the changes concerning a given symbol/piece of code. There are
probably much more elegant, specialized ways to do this, but I still
the above does the job for me in many situations.

David


More information about the dmd-internals mailing list