Add RETURN in functions as alternative for setting result

Post your requests and ideas on the future development of mikroPascal PRO for ARM.
Post Reply
Author
Message
tonypdmtr
Posts: 9
Joined: 15 Dec 2016 19:02

Add RETURN in functions as alternative for setting result

#1 Post by tonypdmtr » 16 Jan 2018 16:04

Like some mode(s) of FreePascal, it's often simpler to just use RETURN followed by the function result than to use 'result := value' or 'FunctionName := value' followed by EXIT.

User avatar
dusan.poluga
mikroElektronika team
Posts: 780
Joined: 02 Feb 2017 14:21

Re: Add RETURN in functions as alternative for setting resul

#2 Post by dusan.poluga » 23 Jan 2018 09:50

Hi,

Thank you for your suggestion.
I will report it to the developers for consideration.

Best Regards,
Dusan Poluga.

Post Reply

Return to “mikroPascal PRO for ARM Wish List”