in reply to perl interpreter must be named my_perl?
Yes, from looking at perl.h, the aTHX macro (and many other macros) hardcode my_perl as the variable name of the Perl interpreter. I think this is mostly so you don't have to pass that variable as a parameter everywhere.
Looking at perlembed, I don't find this requirement mentioned, so a bug report to document that seems plausible.
Allowing to change the name of that variable would increase the complexity of the macros and the usage I think, so this would be a lot of work for little gain. But the documentation should be explicit about this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl interpreter must be named my_perl?
by Anonymous Monk on Nov 30, 2023 at 08:56 UTC | |
by Corion (Patriarch) on Nov 30, 2023 at 09:05 UTC | |
by ikegami (Patriarch) on Dec 01, 2023 at 03:49 UTC | |
by Anonymous Monk on Dec 01, 2023 at 05:33 UTC | |
by ikegami (Patriarch) on Dec 01, 2023 at 19:22 UTC | |
by bliako (Abbot) on Dec 01, 2023 at 08:05 UTC | |
|