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

"returns" question

Thread Next
ToddAndMargo via perl6-users
December 7, 2022 10:02
"returns" question
Message ID:
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,

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

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About