Post Reply 
Sub-routine returning multiple values
10-30-2017, 09:00 AM
Post: #4
RE: Sub-routine returning multiple values
Since the value returned is a list, I have previously suggested that the syntax be enhanced to allow a list of variables to be assigned to:
For example:

Code:

 GetCoordinates()
 Begin
 Return {0,0}
 End;

Myprog()
Begin
Local latitude, Longitude;
{Latitude,Longitude} := GetCoordinates();
End
But that is not in the current syntax.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Sub-routine returning multiple values - StephenG1CMZ - 10-30-2017 09:00 AM



User(s) browsing this thread: 1 Guest(s)