On 11/6/25 3:58 PM, Peter Pentchev wrote:
exitcode
should have been included in the examples in run's documentation.
And exit code should have been included in the definition of
Proc, not buried at the end of the document,
It is in the definition. It is listed as one of the methods, because
that is what it is. "The end of the document" is the section that
lists all of the methods that you can call.
.exitcode in not a method. The value is an integer.
my class Proc {
...
has $.exitcode is default(Nil);
.exitcode is populate inside run by a method.
method exitcode {
self!wait-for-finish;
$!exitcode
}
When you invoke run, run populates your Proc variable
with many things that come from methods. The user
does not call them himself by calling those methods.
So what your are saying, correct me if I misinterpret you,
is that
.exitcode,
.signal
.pid
@.command
Should all go at the end becasue somewhere in the run command,
methods are used to populate them?
How about those things that are file handles, they go
at the end too?