RE: [sv-bc] Function call without ()

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Sat Oct 18 2008 - 09:47:02 PDT
You can read some of the history in 

 

 
http://www.eda.org/sv-ec/Minutes/SV-EC_BallotRes_Meeting_April_15_2005_M
inutes.txt

 

Look for "Mantis 93".

 

-- Brad

 

From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
Surya Pratik Saha
Sent: Saturday, October 18, 2008 2:09 AM
To: sv-bc@eda.org
Subject: [sv-bc] Function call without ()

 

Hi,
As per 1800 2005 LRM:

12.4.5 Optional argument list
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
function method call that is not hierarchically qualified.

Why only class methods are relaxed? If general function also used
without () what is the issue there?



-- 
Regards
Surya


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sat Oct 18 09:50:15 2008

This archive was generated by hypermail 2.1.8 : Sat Oct 18 2008 - 09:51:03 PDT