RE: [sv-bc] Task function identifier searching rule

From: Steven Sharp <sharp_at_.....>
Date: Mon Jan 12 2009 - 18:45:29 PST
>From: "Bresticker, Shalom" <shalom.bresticker@intel.com>

>However, I am a little confused about where the forward referencability of 
subroutines is described in the LRM.

>So this implies that 23.8.1 should describe it. But the sentence there that 
seems relevant to me is: "Then, before proceeding with step (b), an 
implementation shall look in the complete compilation unit of the reference."
>
>That is fine where the subroutine is defined in the compilation unit scope. But 
what about where the subroutine is declared in the same scope as the forward 
reference?

This is the "kludge rule" to get forward references to tasks and functions
in the compilation unit scope.

In other cases, it follows from the normal rules for hierarchical name
resolution.  Looking for a name in a scope is independent of where in the
scope the name was declared.  That is why there were no special rules for
this in 1364.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Jan 12 18:46:02 2009

This archive was generated by hypermail 2.1.8 : Mon Jan 12 2009 - 18:46:38 PST