develooper Front page | perl.perl6.users | Postings from December 2022

"returns" question

Thread Next
From:
ToddAndMargo via perl6-users
Date:
December 7, 2022 10:02
Subject:
"returns" question
Message ID:
e34ea1ce-6ece-87ab-72eb-c63aac7e9a7e@zoho.com
Hi All,

On my sub declarations, I like to use "export"

     sub abc() returns Str {...}

becasue it makes eh sub easier to figure out at
a glance when I go to maintain it.

Two exports I have not figured out are
    1) an array,
    2) an object created from a custom class.

     returns @

gets the finger wagged at me.

What is the proper syntax for these two?


Many thanks,
-T


-- 
~~~~~~~~~~~~~~~~~~~~~~~~
Yesterday it worked.
Today it is not working.
Windows is like that.
~~~~~~~~~~~~~~~~~~~~~~~~

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About