Nice/src/nice/tools/visibility impl.nice,1.3,1.4 flat.nice,1.2,1.3

Daniel Bonniot <[email protected]> Sat, 12 Mar 2005 02:41:48 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/src/nice/tools/visibility
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5589/src/nice/tools/visibility

Modified Files:
	impl.nice flat.nice 
Log Message:
Implemented visibility for toplevel variables and values.


Index: impl.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/visibility/impl.nice,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** impl.nice	6 Mar 2005 15:57:10 -0000	1.3
--- impl.nice	12 Mar 2005 02:41:45 -0000	1.4
***************
*** 25,31 ****
  add(Scope this, key, value, familial)
  {
-   super;
    if (parent != null)
!     notNull(parent).add(key, value, intimate);
  }
  add(Scope this, key, value, general)
--- 25,32 ----
  add(Scope this, key, value, familial)
  {
    if (parent != null)
!     notNull(parent).add(key, value, familial);
!   else
!     super;
  }
  add(Scope this, key, value, general)
***************
*** 35,44 ****
      notNull(parent).add(key, value, general);
    else
!     {
!       // General implies familial
!       this.add(key, value, familial);
! 
!       publicMap.add(key, value);
!     }
  }
  
--- 36,40 ----
      notNull(parent).add(key, value, general);
    else
!     publicMap.add(key, value);
  }
  

Index: flat.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/visibility/flat.nice,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** flat.nice	11 Mar 2005 22:23:32 -0000	1.2
--- flat.nice	12 Mar 2005 02:41:45 -0000	1.3
***************
*** 33,36 ****
--- 33,40 ----
  	res.addAll(temp);
  
+       temp = s.publicMap[key];
+       if (temp != null)
+ 	res.addAll(temp);
+ 
        for (o : s.opens)
  	{



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click