Random DMD Facts

From D Wiki
Revision as of 10:58, 7 June 2020 by UplinkCoder (talk | contribs) (Created page with "== Random DMD Facts. == I've decided to document everything here that I come across. On this page you'll see a truly random assortment of facts about DMD Internals. (Which ma...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Random DMD Facts.

I've decided to document everything here that I come across. On this page you'll see a truly random assortment of facts about DMD Internals. (Which may be outdated by the time of reading)

1) Detecting a class to a default constructor:

  class C {}; auto c = new C()
  Will be represented as a `NewExp`
  To get the function that is being called you need to look at the member `member` 
  If that `FuncDeclaration` is null, this is a call to the default constructor.