home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13375 < prev    next >
Encoding:
Text File  |  1992-09-08  |  617 b   |  37 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!pipex!warwick!nott-cs!lut.ac.uk!cojm2
  3. From: J.March@lut.ac.uk
  4. Subject: Novice question
  5. Message-ID: <1992Sep5.000938.9187@lut.ac.uk>
  6. Reply-To: J.March@lut.ac.uk (Jon March)
  7. Organization: Loughborough University, UK.
  8. References: <H7ZyoB6w164w@cellar.org> <1992Sep3.164747.25939@news.miami.edu> <1992Sep4.194039.23622@advtech.uswest.com>
  9. Date: Sat, 5 Sep 92 00:09:38 GMT
  10. Lines: 25
  11.  
  12. Why dosn't this work?...
  13.  
  14. class thing 
  15. {
  16.     ...
  17.     void    f();
  18.     void    g();
  19. }
  20.  
  21. void main()
  22. {
  23.     thing obj;
  24.  
  25.     obj.f().g();
  26. }
  27.  
  28.  
  29.  
  30. I am trying to get this sort of effect:
  31.  
  32.     obj <- g( f( obj ) )
  33.  
  34.  
  35. Jon March
  36.  
  37.