gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modula-2 generics, exceptions, and optional parameters - how widely


From: Benjamin Kowarsch
Subject: Re: Modula-2 generics, exceptions, and optional parameters - how widely supported?
Date: Thu, 28 Mar 2024 20:24:49 +0900


On Thu, 28 Mar 2024 at 20:08, Gaius Mulley wrote:

> So, I'd recommend you try working with an external template expansion utility and then see how this works out.

I concur, as a side note it is possible to insert line directives into
the processed source to direct the debugger to the original source.

So for example:

# 123 topsource.mod
some mangled m2 code

when compiled with gm2 -g will contain debugging info relating "some
mangled m2 code" to line 123 in file topsource.mod.  I find this feature
useful to toggle on/off depending the level of debugging required.

But you still don't see the actual source that the compiler sees after internal and hidden template expansion. This increases your mental load very significantly because you constantly have to compose in your head what the result of the expansion will be.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]