home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / std / cplus / 954 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.8 KB  |  38 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: Alternatives to operator.()
  5. Message-ID: <9220719.1283@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <BruME9.HGJ@world.std.com> <9220604.6372@mulga.cs.mu.OZ.AU> <9220614.4939@mulga.cs.mu.OZ.AU> <1992Jul24.190321.5671@kodak.kodak.com>
  9. Date: Sat, 25 Jul 1992 09:55:03 GMT
  10. Lines: 26
  11.  
  12. cok@sunshine.Kodak.COM (David Cok) writes:
  13.  
  14. >In article <9220614.4939@mulga.cs.mu.OZ.AU> fjh@mundil.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
  15. >>
  16. >>The more I think about this the more I like it.
  17. >>In fact I would say that is is *better* than just allowing
  18. >>    r.invalidate_cache();
  19. >>since you *want* meta-operations to stand out as being semantically different
  20. >>to standard operations. This method allows you to clearly seperate the two.
  21. >>Also in general you might want to control access to meta-operations, and
  22. >>having this seperation also makes that easier.
  23. >
  24. >No, I don't want meta-operations to stand out.  I want to be able to design
  25. >interfaces in which construction, copying, destruction, conversion all happen
  26. >silently and automatically where the interface designs them to.  The same
  27. >would apply to operator. if it were allowed to be overloaded.
  28.  
  29. But these operations *would* be silent and automatic for the SmartRef
  30. class I was thinking of. It's only meta-operations like invalidate_cache()
  31. that would stand out. (Maybe I don't understand what you mean?)
  32.  
  33. -- 
  34. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  35. This .signature VIRUS is a self-referential statement that is true - but 
  36. you will only be able to consistently believe it if you copy it to your own
  37. .signature file!
  38.