logo       

Nice/src/mlsub/typing NullnessKind.java,1.5,1.6 MonotypeVar.java,1.19,1.20: msg#00027

Subject: Nice/src/mlsub/typing NullnessKind.java,1.5,1.6 MonotypeVar.java,1.19,1.20
Update of /cvsroot/nice/Nice/src/mlsub/typing
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27419/src/mlsub/typing

Modified Files:
        NullnessKind.java MonotypeVar.java 
Log Message:
Give the raw variable associated to a type variable with persistent nullness
kind the same name as the original variable.


Index: MonotypeVar.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/mlsub/typing/MonotypeVar.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** MonotypeVar.java    25 May 2005 23:22:57 -0000      1.19
--- MonotypeVar.java    27 May 2005 13:59:47 -0000      1.20
***************
*** 164,168 ****
        {
          kind = k;
!         equivalent = NullnessKind.instance.persistentFreshMonotype();
        }
    }
--- 164,168 ----
        {
          kind = k;
!         equivalent = NullnessKind.instance.persistentFreshMonotype(this);
        }
    }

Index: NullnessKind.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/mlsub/typing/NullnessKind.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** NullnessKind.java   25 May 2005 23:22:57 -0000      1.5
--- NullnessKind.java   27 May 2005 13:59:47 -0000      1.6
***************
*** 50,58 ****
      return new MonotypeConstructor(tc, new Monotype[]{ raw });
    }
!   
!   public Monotype persistentFreshMonotype()
    {
      TypeConstructor tc = new TypeConstructor(instance);
!     Monotype raw = new MonotypeVar();
  
      return new MonotypeConstructor(tc, new Monotype[]{ raw });
--- 50,66 ----
      return new MonotypeConstructor(tc, new Monotype[]{ raw });
    }
! 
!   /**
!      @param base The type variable we create this fresh constructed
!                  monotype for.
!   */
!   public Monotype persistentFreshMonotype(MonotypeVar base)
    {
      TypeConstructor tc = new TypeConstructor(instance);
! 
!     /* It's important to give the raw variable the same name as the base one,
!        so that for the syntactic type <T> ... !T we don't end up printing !t9.
!     */
!     Monotype raw = new MonotypeVar(base.getName());
  
      return new MonotypeConstructor(tc, new Monotype[]{ raw });



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe