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, and is
believed to be clean.
Received on Sat Oct 18 02:10:27 2008