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.Received on Wed Mar 14 06:51:26 2007
This archive was generated by hypermail 2.1.8 : Wed Mar 14 2007 - 06:51:32 PDT