[sv-bc] 1809

From: Francoise Martinolle <fm_at_.....>
Date: Wed Mar 19 2008 - 16:58:33 PDT
I uploaded a new version of 1809.
That version still conserves the consistency of search throughout all
lexical scopes including the compilation unit
scope.
If we wanted to change this we would have to have an exception for task
and function
resolution when the searched scope is the compilation unit scope.
 
With my algorithm, the reference to f() in the example below binds to
$unit::f
and not to pkg::f, even if the function f() is declared at the end of
the compilation unit scope...
The rules stipulates that the entire scope is searched for a locally
visible name.
import pkg::*;

module top;

int x = f(); 

endmodule

// LATER , MUCH LATER

function int f(); return 1; endfunction


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Mar 19 17:00:20 2008

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 17:00:35 PDT