I haven't found explicit restriction that for inout,output, ref, and const ref t/f port actual argument we may use only lvalue. It is not so abvious ie C allows to use expression as actual when argument is const ref: int f(const int & a) { return 1; } int _tmain() { int a,b; f(2); f(a+b); } Such ifno may be added into 12.2 port direction description, or as foot note to list of arguments syntax definition (or both): IE: list_of_arguments ::= [ expression ] { , [ expression ] } { , . identifier ( [ expression ] ) } | . identifier ( [ expression ] ) { , . identifier ( [ expression ] ) } foot note: Only lvalue is allowed as actual argument for output, inout, ref, const ref t/f port. Expressions are allowed only for input ports. DANiel -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Apr 3 01:08:01 2008
This archive was generated by hypermail 2.1.8 : Thu Apr 03 2008 - 01:08:25 PDT