[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
h2xs - backwards compatibility?
If I understand h2xs correctly, the so-called backwards compatibility
mode, which is enforced by default, is set to $], which equals the module
author's perl version, most often the standard one distributed along with
the operating system.
It has a slight touch of a premature optimization bearing in mind
that a module created via h2xs will likely be used on systems with
differing perl versions than the one the stub files were created with,
including ones running prior and only prior versions.
Furthermore, I don't like the fact, that one has to use the -b switch in
order to regain further compatibility; I'd rather like to see it
vice versa, where statements, that specify the perl version required
and variables declared with the keyword our remain optional.
In such a case, to distinguish whether XSLoader or DynaLoader should be
used to handle the "bootstrapping", I'd propose to resort to an eval block
as shown in the documentation of XSLoader.
Opinions?
- Follow-Ups from:
-
Rafael Garcia-Suarez <rgarciasuarez@gmail.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]