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

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Sun Jan 11 2009 - 05:35:57 PST
Hi, I agree with the comments of all the committee members.

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

I thought Mantis 1809 was supposed to document this, and I myself was reasonably satisfied when I reviewed the proposal. But I don't see it now.

1809 added section 13.7, which says,

"Task and function names are resolved following slightly different rules than other references. Even when used as a simple name, a task or function name follows a modified form of the upwards hierarchical name resolution rules. This means that "forward" references to a task or function defined later in the same or an enclosing scope can be resolved. See 23.8.1 for the rules that govern task and function name resolution."

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?

Thanks,

Shalom
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sun Jan 11 05:37:03 2009

This archive was generated by hypermail 2.1.8 : Sun Jan 11 2009 - 05:37:38 PST