https://docs.raku.org/type/Proc#method_exitcode

^^

On Mon, Nov 3, 2025 at 8:40 PM ToddAndMargo via perl6-users <
[email protected]> wrote:

> On 11/3/25 5:09 PM, Will Coleda wrote:
> > On my cell, but pretty sure exitcode is a method you call on the
> > returned proc, not a parameter you pass in to a constructor.
>
> Hi Will,
>
> What I am looking at is the Proc is a OOP
> (Object-Oriented Programming) construct
> set up as a method.
>
> my int  $x = $p.exitcode
>
> is how you read elements from an OOP construct
> (class).
>
> If the data is in the OOP construct, it
> needs to be defined in the documentation.
>
> "exitcode" is nowhere I can find in either "run"
> or "Proc", but I have missed things in the
> documentation before.   (I do not have a good
> history with the documentation.  I see it as
> a refresher for those that already know what
> they are doing and not for beginners.  And I am
> the very embodiment of a "beginner" with Raku.)
>
> search.brave.con's AI to the rescue:
>
>
> https://search.brave.com/search?q=raku+exitcode&source=web&summary=1&conversation=ec8afd654b7e77860b84ea
>
>      The exitcode method in Raku's Proc class returns the exit
>      code of an external process, or -1 if the process has not
>      yet exited
>
> I am copying the above downing into my "run" keeper.
>
> So if the above is not "AI Slop", "exitcode" in part of
> the Proc's OOP construct and it need to be both show and
> discussed in the documentation.
>
> Yours in confusion,
> -T
>

Reply via email to