[sv-bc] mantis 2549 - ommiting parenthesis in f-call

From: Daniel Mlynek <daniel.mlynek_at_.....>
Date: Wed Jun 17 2009 - 00:15:34 PDT
I have doubt with current LRM description:
When a void function or class function method specifies no arguments, the
empty parenthesis, (), following the subroutine name shall be optional. This
is also true for tasks, void functions, and class methods that require
arguments, when all arguments have defaults specified. It shall be illegal
to omit the parenthesis in a directly recursive nonvoid class function
method call that is not hierarchically qualified.

1. As I understand in call to task,  "void function", "void method function"
parenthesis can be ommited ( am I right?)

2. What if "nonvoid function" or "non-void function method" is called like a
task - return value is discarded

3. For "nonvoid-function  method" behaviour is desribed but what about
"nonvoid function" the behaviour should be the same as for method or
parenthesis cannot be ommited at all?

4. Should the same rules be valid for randomize_call where BNF defined that
for std::randomize () are obligatory, and for randomize method can be
ommited - which rules take precedence?

 

DANiel


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Jun 17 00:17:49 2009

This archive was generated by hypermail 2.1.8 : Wed Jun 17 2009 - 00:19:03 PDT