Mark Hartoog wrote: > Another issue to consider is whether hierarchical resolution applies > to packages. The LRM says "Items within packages cannot have > hierarchical references." Since "forward" references to task and > functions are resolved as hierarchical references, is this legal: > > package P: > > function void f1(); > f2(); > endfunction > > function void f2(); > endfunction > > endpackage I don't have any problem with allowing a hierarchical reference within a package that resolves within that same package. The intent of this (at least my intent) was "no hierarchical references that resolve upwards past the package". It isn't just the bare identifiers that are at issue here -- if you have: function void f1; int x; endfunction function void f2; int y = f1.x; endfunction that should be legal in a package context as well as in other contexts. Gord. -- -------------------------------------------------------------------- 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 Mon Jun 4 06:50:26 2007
This archive was generated by hypermail 2.1.8 : Mon Jun 04 2007 - 06:50:43 PDT