Don't want @include? Use #include!
[...]
Don't want @include? Use #include!
Quick demo:
$ cppawk '#define FORTY_TWO 42
BEGIN { print FORTY_TWO }'
42
Don't want @include? Use #include!
Quick demo:
$ cppawk '#define FORTY_TWO 42
BEGIN { print FORTY_TWO }'
42
On 17.03.2022 22:41, Kaz Kylheku wrote:
Don't want @include? Use #include!
Doesn't @include do more than just lexical text replacement?
In article <t10hp1$ttj$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
On 17.03.2022 22:41, Kaz Kylheku wrote:
Don't want @include? Use #include!
Doesn't @include do more than just lexical text replacement?
It is hard to tell what exactly is the point of this "cppawk" thing.
As usual, OP is long on "where" and "how", but not so hot on "why".
That said, I do kinda see how it (using the C preprocessor to do the heavy lifting) is more powerful than the (rather basic) @include facility built into GAWK. But of course, is it more powerful enough to justify anyone
other than OP adopting it ("it" being "cppawk") into their workflow?
Unclear.
On 2022-03-22, Kenny McCormack <gazelle@shell.xmission.com> wrote:
In article <t10hp1$ttj$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
On 17.03.2022 22:41, Kaz Kylheku wrote:
Don't want @include? Use #include!
Doesn't @include do more than just lexical text replacement?
It is hard to tell what exactly is the point of this "cppawk" thing.
As usual, OP is long on "where" and "how", but not so hot on "why".
The "why" is very open ended. An aspect of it is "why not", as well
as exploration: discover the "why".
In article <t10hp1$ttj$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
[...]
But to answer your question: No, I don't really think GAWK's @include does anything more than "lexical text replacement". What more would you want it to do?
P.S. I'm surprised to hear that you don't use @include much. It seems pretty much essential to do anything beyond simple command line AWK
programs. Also, I use @load a lot as well (and I don't see any other replacement for that).
Do you use the "inplace" editing facility much? That uses the concept of @include (one way or the other).
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 793 |
Nodes: | 10 (1 / 9) |
Uptime: | 39:36:40 |
Calls: | 11,106 |
Calls today: | 3 |
Files: | 186,086 |
Messages: | 1,751,466 |