Constants with program with parent dependency

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Constants with program with parent dependency

Arne Goedeke
Hi all,

the following code does not work anymore in pike 8:

constant fail = ({ A });

class A {
  array foo = fail;

As far as I can tell the reason was that previously unfinished programs
were not considered to use their parent and so the reference of A in the
array ended up being a program instead of the function. The commit which
introduced this change in behavior was


My feeling is that the new behavior is actually correct, or is this a