RE: [sv-bc] static task/function can have ref argument??

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Wed Mar 14 2007 - 08:54:13 PDT
Mantis 1762.

Shalom

> -----Original Message-----
> From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org]
> On Behalf Of Gordon Vreugdenhil
> Sent: Wednesday, March 14, 2007 3:51 PM
> To: Dhiraj Kumar Prasad
> Cc: sv-bc@server.eda.org
> Subject: Re: [sv-bc] static task/function can have ref argument??
> 
> P1800-2005 12.4.2 is clear:
>    It shall be illegal to use argument passing by reference for
>    subroutines with a lifetime of static.
> 
> If you are talking about the example in 12.4.2, I agree that
> it should be cleaned up to be clear.
> 
> One could argue that the LRM is silent about the context
> of the example -- such a declaration would be legal in a context
> that defaults to automatic.  But that is a bit subtle and for
> examples like this the LRM should be clear.
> 
> BTW, please do indicate sections numbers if you think there is
> an example or text issue.
> 
> Gord.
> 
> Dhiraj Kumar Prasad wrote:
> > Hi,
> >
> > can a static task/function can have ref argument?.
> > if not then there is ambiguity in LRM P1800.2005
> > as there is an example with static task/function having
> > ref argument.
> >   so can you tell which one should be right.
> >
> > Thanks
> >
> >
> >
> 
> --
> --------------------------------------------------------------------
> Gordon Vreugdenhil                                503-685-0808
> Model Technology (Mentor Graphics)                gordonv@model.com
> 
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, 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 Wed Mar 14 08:56:06 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 14 2007 - 08:56:14 PDT