Re: boo-boo in run docs?
[email protected] (Peter Pentchev) Tue, 11 Nov 2025 16:22:56 +0200
| Newsgroups | perl.perl6.users |
|---|---|
| Message-ID | <[email protected]> |
--uJ/qmQddc2vPrIHc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 11, 2025 at 03:55:11PM +0200, Peter Pentchev wrote: > On Tue, Nov 11, 2025 at 04:44:42AM -0800, ToddAndMargo via perl6-users wr= ote: > > 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, > >=20 > > > 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. > >=20 > > .exitcode in not a method. The value is an integer. >=20 > No, "$.exitcode" is an internal field that you do not have > direct access to. The only reason you know about that field right now is > that you looked at the source code of the class; programs that use > objects of the Proc class cannot access it directly. >=20 > The "exitcode" method, on the other hand, is what Raku creates > automatically when the source code says "has $.exitcode". It will > read the value of the internal "$.exitcode" field and it will return To be a bit more precise, for methods of that class that will have access to the internal field, the field itself is called "$!exitcode". G'luck, Peter --=20 Peter Pentchev [email protected] [email protected] [email protected] PGP key: https://www.ringlet.net/roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 --uJ/qmQddc2vPrIHc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmkTRroACgkQZR7vsCUn 3xOabg//VCrf4DOZCmg4uXFvji5gdmnYFkii/NNN1vjW94G5ghZRJAWfL1c+bzgv h86hgNH6NmIUVuaQd0sReYXL02DWvhMF9wCRR2aQGz1RhB/QLR2g5LO6T7N+bftB R/olyVMb510G7l9j3nIhtZvsMDacxHU7tHTbmryRod6El7mzJSoijdALJuMts6kI R/q0w5AIPekuO1IS6iOZ7xau5MIGBOZxMnUUP1uW6RDraKVEeAHJ5eomZWQ2WaNK 6lMrVlltX6vE/E+nmthsyJhhN8MAPUiP9qxi/iRlaJUQhHVNY5P+tJ0OhEbPpTVA xZzbMtz37/2KM6nvpS4rPopbD+w5DdGRLgpaGrtx+cqsCfQipIFU5YqmNOj2rgaX GGRNjLrOHyAlZLkIuuM08xBgD71MkoycAuLR8k5nc+8xDu8O2rroOLmhRE4JAsQz xsRcC8cMGcRv+lfOjVAqVsEAyic7J1la2eom43pWCpzL6Ud2Ct5zfeYrvoFbKbMy s1/CVu2AkEggCrIizU1sxzkvtbV8iZUrGw0Ey/ZenjDrL/MzuHuARDw+xz6U2t0t pZ8BMaSQdpi/AaxqhaOE0rt03JTOb4oDYhzFxyi1Xf8cXyS3y5rfenbQ6Ui7PRgg ktb5poythoBaWFfqzac21oqJK216lNxbP3i+8sreVLL+Rkbk0Tc= =TTHz -----END PGP SIGNATURE----- --uJ/qmQddc2vPrIHc--