Re: boo-boo in run docs?
[email protected] (ToddAndMargo via perl6-users) Sat, 8 Nov 2025 03:19:23 -0800
| Newsgroups | perl.perl6.users |
|---|---|
| Message-ID | <[email protected]> |
On 11/8/25 2:16 AM, Peter Pentchev wrote: > Oh, sorry, one last (new) thing. You said: > >>> "run" is a method inside Proc's OOP structure. > It is not a method inside `Proc`. It is a routine on its own - it is > something you can just call without mentioning `Proc` - in your program > you call run(...), you don't call Proc.run(...), right? > > It is defined inside the same file that defines `Proc`, but that does not > make it a method inside `Proc` - there is no `method` keyword in > the definition of `run` in that file, is there? Hi Peter, Made me look at the source code again. I missed a "}". You are correct, it is a "sub" exported from Proc.rakumod. It is not part of the class deceleration or Proc. Thank you for the correction. -T