home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!caen!hellgate.utah.edu!fcom.cc.utah.edu!swillden
- From: swillden@news.ccutah.edu (Shawn Willden)
- Subject: Re: Tagged Pointers
- Message-ID: <1992Aug13.173401.14944@fcom.cc.utah.edu>
- Sender: news@fcom.cc.utah.edu
- Organization: University of Utah Computer Center
- X-Newsreader: Tin 1.1 PL3
- References: <1992Aug13.082618.18274@ucc.su.OZ.AU>
- Date: Thu, 13 Aug 92 17:34:01 GMT
- Lines: 31
-
- maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
- : In article <1992Aug10.221849.19455@fcom.cc.utah.edu> swillden@news.ccutah.edu (Shawn Willden) writes:
- : >maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
- : >:
- : >: Am I wrong on this, do tagged references make sense?
- : >
- : >Sure they make sense. Are they necessary? (Assuming tagged pointers
- : >are). Look at the following.
- :
- : They're never *necessary*. But useful? and sound? and safe?
-
- Right. I was using 'necessary' in a little looser sense than you are.
-
- : > 2) Tighten the relationship between tagged pointers and
- : > tagged unions. i.e. dereferencing a tagged pointer in
- : > a context where a tagged union of like types is expected
- : > yields a tagged union and taking the address of a tagged
- : > union yields a tagged pointer. Then foo could be declared
- : > as taking a reference to a tagged union and foo(*r) would
- : > be valid. I think there are some things wrong with this
- : > idea, though I haven't thought it out.
- :
- : Pointer to tagged unions != tagged pointer. Have to think
- : about it.
-
- That's what I understood from your previous posts (TU*!=TP) and I was
- suggesting that maybe there is a good argument for making this so.
- What are the arguments against it?
-
- Shawn Willden
- swillden@icarus.weber.edu
-