generative programming and debugging
Gor Gyolchanyan
gor.f.gyolchanyan at gmail.com
Wed Oct 19 23:08:48 PDT 2011
yeah, currently i do the same :-)
On Thu, Oct 20, 2011 at 12:11 AM, Fawzi Mohamed <fawzi at gmx.ch> wrote:
> On Oct 19, 2011, at 11:07 AM, Gor Gyolchanyan wrote:
>
>> Do anybody know a good way to (statically) debug a generated code?
>> Currently it takes lots of effort to determine the place, where the
>> code is being incorrectly generated.
> my method is to try to have a single mixing rather than several (i.e. making nested mixing simple concatenate the corresponding code).
> So I can pragma(msg,myMixinFunction()); and possibly even replace the mixing with the generated code when debugging it.
>
> this supposing you were referring to mixing problems, templates normally behave better, but I tend to pass explicit template parameters to improve their behavior in case of errors
>
> Fawzi
>
More information about the Digitalmars-d
mailing list