comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: Return statement must have 1 value?

Re: Return statement must have 1 value?
type: item
description: David Kennedy has really been working too many late hours when he writes: > In the course of some quick and dirty data reduction I've hit a weird > bug with the RETURN keyword. Its really confusing me (as well as stopping > me from progressing with the work!). Help appreciated. > > It says: > return answer > ^ > % Return statement in functions must have 1 value. Uh, try a comma, David. ;-) Return, answer Cheers, (And go get some sleep, man!) David ----------------------------------------------------------- David Fanning, Ph.D. Fanning Software Consulting E-Mail: davidf@dfanning.com Phone: 970-221-0438 Coyote's Guide to IDL Programming: http://www.dfanning.com/
creator: davidf
date: 1997-10-21T07:00:00-00:00

Re: Return statement must have 1 value?
type: item
description: In article <62j96i$315$1@news.qub.ac.uk>, D.Kennedy@qub.ac.uk (David Kennedy) writes: > % Return statement in functions must have 1 value. > return answer Thanks to those who emailed to point out that I had forgotten the comma in the above statement. I am, of course, a complete fool. (I wouldn't mind but I had three other functions in the same file with the correct syntax. I _knew_ I had been staring at something obvious...) -- David Kennedy, Dept. of Pure & Applied Physics, Queen's University of Belfast Email: D.Kennedy@Queens-Belfast.ac.uk | URL: http://star.pst.qub.ac.uk/~dcjk/ My .sig was so clever that it actually escaped!
creator: D.Kennedy
date: 1997-10-22T07:00:00-00:00