* [ANNOUNCE] pom-ng new release
@ 2004-05-04 10:28 Jozsef Kadlecsik
2004-05-04 15:11 ` Patrick McHardy
0 siblings, 1 reply; 5+ messages in thread
From: Jozsef Kadlecsik @ 2004-05-04 10:28 UTC (permalink / raw)
To: netfilter-devel
Hi,
I'm happy to announce the new pom-ng release!
There are numerous internal changes:
- object-oriented internal API instead of the functional one:
more consistent, easier to extend, but function prototypeing is lost
- complete control over version dependency via name encoding and
version requirements in info files
- complete dependency checking: when a patch is dependent on other
patches and neither one is specified, shadow tree is created to
check wether the patch could really be applied
- special updates/ directory for full project-version patches and bugfixes
introduced
- reported bugs and improvements fixed/incorporated:
- dependency clashing did not work (Jim Gifford)
[Could any Perl guru explain in plain English while the code
for my $dep (@{$$patchlet{info}{depends}}) {
$dep =~ s/^!//;
}
modifies the content of array $patchlet{info}{depends} too??]
- broken out patches are supported (KOVACS Krisztian)
- ignore case in runme (syrius.ml)
Please check out and try the new code. Bugreports, suggestion for
improvements are welcomed!
Best regards,
Jozsef
-
E-mail : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ANNOUNCE] pom-ng new release
2004-05-04 10:28 [ANNOUNCE] pom-ng new release Jozsef Kadlecsik
@ 2004-05-04 15:11 ` Patrick McHardy
2004-05-04 20:30 ` Jozsef Kadlecsik
2004-05-04 20:38 ` Henrik Nordstrom
0 siblings, 2 replies; 5+ messages in thread
From: Patrick McHardy @ 2004-05-04 15:11 UTC (permalink / raw)
To: Jozsef Kadlecsik; +Cc: netfilter-devel
Jozsef Kadlecsik wrote:
>- reported bugs and improvements fixed/incorporated:
> - dependency clashing did not work (Jim Gifford)
>
> [Could any Perl guru explain in plain English while the code
>
> for my $dep (@{$$patchlet{info}{depends}}) {
> $dep =~ s/^!//;
> }
>
>
My local Perl guru is surprised, too, but if you really want
to modify only $dep (why, it's scope is just the loop?), you
can just assign $dep it to a new variable and modify this
one, in this case the content of the array won't be touched.
Regards
Patrick
> modifies the content of array $patchlet{info}{depends} too??]
>
> - broken out patches are supported (KOVACS Krisztian)
> - ignore case in runme (syrius.ml)
>
>Please check out and try the new code. Bugreports, suggestion for
>improvements are welcomed!
>
>Best regards,
>Jozsef
>-
>E-mail : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
>PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
>Address : KFKI Research Institute for Particle and Nuclear Physics
> H-1525 Budapest 114, POB. 49, Hungary
>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ANNOUNCE] pom-ng new release
2004-05-04 15:11 ` Patrick McHardy
@ 2004-05-04 20:30 ` Jozsef Kadlecsik
2004-05-04 20:38 ` Henrik Nordstrom
1 sibling, 0 replies; 5+ messages in thread
From: Jozsef Kadlecsik @ 2004-05-04 20:30 UTC (permalink / raw)
To: Patrick McHardy; +Cc: netfilter-devel
On Tue, 4 May 2004, Patrick McHardy wrote:
> > for my $dep (@{$$patchlet{info}{depends}}) {
> > $dep =~ s/^!//;
> > }
>
> My local Perl guru is surprised, too, but if you really want
> to modify only $dep (why, it's scope is just the loop?), you
> can just assign $dep it to a new variable and modify this
> one, in this case the content of the array won't be touched.
Yes, that's how the problem solved in Netfilter_POM.pm. It smells
as a weird Perl bug.
Best regards,
Jozsef
-
E-mail : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ANNOUNCE] pom-ng new release
2004-05-04 15:11 ` Patrick McHardy
2004-05-04 20:30 ` Jozsef Kadlecsik
@ 2004-05-04 20:38 ` Henrik Nordstrom
1 sibling, 0 replies; 5+ messages in thread
From: Henrik Nordstrom @ 2004-05-04 20:38 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Jozsef Kadlecsik, netfilter-devel
On Tue, 4 May 2004, Patrick McHardy wrote:
> > for my $dep (@{$$patchlet{info}{depends}}) {
> > $dep =~ s/^!//;
> > }
>
> My local Perl guru is surprised, too, but if you really want
> to modify only $dep (why, it's scope is just the loop?)
Well.. it is one of many Perl oddities, but it is well documented, and
also a great strength of Perl (even if confusing, but a lot is in Perl..)
Foreach Loops
[...]
If any element of LIST is an lvalue, you can modify it by modifying VAR
inside the loop. Conversely, if any element of LIST is NOT an lvalue, any
attempt to modify that element will fail. In other words, the "foreach"
loop index variable is an implicit alias for each item in the list that
you're looping over.
Or in other words, do not touch the loop variable unless you want to
modify the source elements. If you want to process/filter the value
without modifying the source element then use a "dummy" loop variable and
assign it to a local variable within the loop. This implicit reference is
a very poverful idiom for processing lists of elements, but can be
confusing very confusing when not expected..
Regards
Henrik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ANNOUNCE] pom-ng new release
[not found] <4097F545.9030207@rtij.nl>
@ 2004-05-04 20:40 ` Jozsef Kadlecsik
0 siblings, 0 replies; 5+ messages in thread
From: Jozsef Kadlecsik @ 2004-05-04 20:40 UTC (permalink / raw)
To: Martijn Lievaart; +Cc: netfilter-devel
On Tue, 4 May 2004, Martijn Lievaart wrote:
> Jozsef Kadlecsik wrote:
>
> > [Could any Perl guru explain in plain English while the code
> >
> > for my $dep (@{$$patchlet{info}{depends}}) {
> > $dep =~ s/^!//;
> > }
> >
> > modifies the content of array $patchlet{info}{depends} too??]
>
> Basic Perl actually, no guru knowledge needed. A for loop aliases the
> loop variable to the array element. Do a 'perldoc perlsyn' and look up
> foreach. As Patrick already noted, make a copy if you don't want this. I
> would use:
Ahh, yes, you are absolutely right! Thank you the explanation.
Best regards,
Jozsef
-
E-mail : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-05-04 20:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-04 10:28 [ANNOUNCE] pom-ng new release Jozsef Kadlecsik
2004-05-04 15:11 ` Patrick McHardy
2004-05-04 20:30 ` Jozsef Kadlecsik
2004-05-04 20:38 ` Henrik Nordstrom
[not found] <4097F545.9030207@rtij.nl>
2004-05-04 20:40 ` Jozsef Kadlecsik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.