[sv-ac] Preserve no state information?

From: Little Scott-B11206 <B11206@freescale.com>
Date: Fri Nov 05 2010 - 05:57:37 PDT

Hi all:

In looking at modifications for 2328, I came across the following
restriction in section 16.6.

-Functions shall be automatic (or preserve no state information) and
have no side effects.

My question is what types of additional functions does the parenthetical
statement allow? My understanding is that this statement allows static
functions that don't have any locally declared variables. It seems to
me that these functions can be declared automatic to meet the
requirement without the parenthetical statement. Is this correct? Is
there anything else the parenthetical statement allows?

I would like to remove the parenthetical statement as I believe it
simplifies the restriction. If my understanding above is correct, any
code that becomes noncompliant because of the change could become
compliant by adding automatic to the function declaration.

Thanks,
Scott

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Nov 5 05:58:07 2010

This archive was generated by hypermail 2.1.8 : Fri Nov 05 2010 - 05:58:27 PDT