What's the problem in opensourcing htod?

Walter Bright newshound2 at digitalmars.com
Tue Dec 21 20:05:45 PST 2010


Mariusz Gliwiński wrote:
> Thanks, I understand that. Why htod strips out const?
> 1)
> in: const int var = 2;
> out: null
> 
> 2)
> in: DLL const char *func( int arg );
> out: char * func(int arg);
> 
> 3)
> in: DLL void func( int arg, const char *arg2 );
> out: void  func(int arg, const char *arg2);
> 
> 4) there is
> const int * const
> and void func() const
> too, of course
> 
> a) Are there any chances to fix it?
> b) If no, someone of You have seen tool that implements const's properly? (as 
> I said, scripting language would be preferred, but anything appreciated)

htod was built for D1, and hasn't been updated for D2. Hence, there are some 
issues. But it cannot work perfectly, there'll usually be a bit of hand editing 
of the result.


More information about the Digitalmars-d mailing list