RE: [sv-bc] E-mail Ballot: Respond by Wed Sep 05 8am PDT

From: Rich, Dave <Dave_Rich_at_.....>
Date: Wed Sep 05 2007 - 05:49:55 PDT
A non-void function may be used in an expression. A non-void function
used as a statement shall be an error. A non-void function may be cast
to the void type to discard a function's return value so that the
function may used as a statement:

> -----Original Message-----
> From: Bresticker, Shalom [mailto:shalom.bresticker@intel.com]
> Sent: Wednesday, September 05, 2007 2:46 AM
> To: Rich, Dave; sv-bc@server.eda.org
> Subject: RE: [sv-bc] E-mail Ballot: Respond by Wed Sep 05 8am PDT
> 
> How about
> 
> "Function calls that return a value shall be used in an assignment or
an
> expression."
> 
> It is true that you don't have to use a function, but the intent was a
> function call.
> 
> Shalom
> 
> 
> > > SVDB 1988 ___Yes   __[DR] X_No
> > > http://www.eda.org/svdb/bug_view_page.php?bug_id=1988
> > [DR] "Functions that return a value shall be assigned or used
> > in an expression." 'shall' should be 'may'. You don't have to
> > use a function

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Sep 5 05:50:13 2007

This archive was generated by hypermail 2.1.8 : Wed Sep 05 2007 - 05:50:48 PDT