home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 15961 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!nymfe!s026
  3. From: s026@brems.ii.uib.no (Paal K Holmberg)
  4. Subject: Re: operator [][]
  5. Message-ID: <1992Nov9.114516.29846@alf.uib.no>
  6. Sender: usenet@alf.uib.no (Bergen University Newsaccount)
  7. Organization: University of Bergen, Norway
  8. References: <BxFt8r.2Kt@cs.columbia.edu> <1992Nov9.095352.19114@fmrco.uucp>
  9. Date: Mon, 9 Nov 92 11:45:16 GMT
  10. Lines: 32
  11.  
  12. In article <1992Nov9.095352.19114@fmrco.uucp>, pandrews@lovat.fmrco.com (Paul Andrews) writes:
  13. |> 
  14. |> (apologies if the syntax of the expanded function calls isn't quite correct).
  15. |> 
  16. |> (I would be interested to know if anyone has any other ways of doing this).
  17. |> 
  18. |> (Is there any standard nomenclature for classes like C and B above? something like
  19. |> classB is a slave class, classC is a functor or what?)
  20. |> 
  21. |> ---
  22. |> ---
  23. |> Paul Andrews
  24.  
  25. since it os a trouble to get around mutiple []'s , you can always cheat and use a 
  26. normal function element(int x,int y...) to get a certain element in the matrix or whatever.
  27. I agree it is not as elgant as the [] approach, but it is easy.
  28.  
  29. -- 
  30.  Paal Krebs Holmberg
  31.  UiB
  32.  Norway
  33.  
  34.  "To program, or not to program - thats not a question " ;-) 
  35.  
  36.                                |                          
  37.                                |                           
  38.                                |              
  39.                               (n)             
  40.                    X-----====(.i.)====-----X  
  41.                       X       +++       X    
  42.                                ~             
  43.              Good flying,and check six
  44.