Thread overview
Documentation on DMD source
Apr 18, 2009
Daniel Keep
Apr 18, 2009
Daniel Keep
Apr 19, 2009
Daniel Keep
April 18, 2009
Is there any guide to, or documentation for the DMD compiler source?

I'm currently trying to make TypeInfo_Function not completely useless, but I'm not sure my code is actually being run.

  -- Daniel
April 18, 2009

Daniel Keep wrote:
> Is there any guide to, or documentation for the DMD compiler source?
> 
> I'm currently trying to make TypeInfo_Function not completely useless, but I'm not sure my code is actually being run.
> 
>   -- Daniel

Found this page: http://www.prowiki.org/wiki4d/wiki.cgi?DMDSourceGuide although it's fairly bare-bones.

  -- Daniel
April 18, 2009
You'll get a lot of use out of defining the debugs for #ifdefs, and/or uncommenting printfs and following it.

If your code may not be running, use a breakpoint or printf to ensure it is.

-[Unknown]


Daniel Keep wrote:
> 
> Daniel Keep wrote:
>> Is there any guide to, or documentation for the DMD compiler source?
>>
>> I'm currently trying to make TypeInfo_Function not completely useless,
>> but I'm not sure my code is actually being run.
>>
>>   -- Daniel
> 
> Found this page: http://www.prowiki.org/wiki4d/wiki.cgi?DMDSourceGuide
> although it's fairly bare-bones.
> 
>   -- Daniel
April 19, 2009

Unknown W. Brackets wrote:
> You'll get a lot of use out of defining the debugs for #ifdefs, and/or uncommenting printfs and following it.
> 
> If your code may not be running, use a breakpoint or printf to ensure it is.
> 
> -[Unknown]

I finally found out why my changes weren't working.

Because typinf.c is the ONE file in the frontend that doesn't get passed $(XFLAGS) when built.  Guess where I put the -D for my changes?  Go on, guess.  You'll never get it.

*bangs head repeatedly*

Now I have an entirely DIFFERENT problem; I officially have NO idea what the code I modified does.  :'(

  -- Daniel