return statement inside if/else/while?

From: Ross Bencina (rossb@audiomulch.com)
Date: Tue Aug 22 2000 - 10:22:54 EDT


Greetings all,

Could someone please clarify whether a return statement is allowed inside
the blocks of if if/else and while statements in UDOs. The standard defines
an opcode statement as:

<opcode statement> -> <statement>
<opcode statement> -> return( <expr list> );

(5.8.7.6.1)

which implys that return is not allowable inside a conditional or while.

Best wishes,

Ross.

.................................
http://www.audiomulch.com/~rossb/



This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 12:03:58 EST