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

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!spool.mu.edu!agate!tfs.com!tfs.com!eric
  3. From: eric@tfs.com (Eric Smith)
  4. Subject: Re: initialization HELP structure of classes
  5. Message-ID: <1992Sep8.001333.897@tfs.com>
  6. Organization: TFS
  7. References: <g89s9112.2.715860452@giraffe.ru.ac.za>
  8. Distribution: global
  9. Date: Tue, 8 Sep 1992 00:13:33 GMT
  10. Lines: 8
  11.  
  12. In article <g89s9112.2.715860452@giraffe.ru.ac.za> g89s9112@giraffe.ru.ac.za (MR D STURZEBECHER) writes:
  13. >ERROR : Objects of type 'A_DATA' cannot be initialized with {  }
  14.  
  15. You can't initialize normal classes that way, only "aggregates".
  16. For normal classes, ou have to use class constructors.
  17.  
  18. "Aggregates" are C structs, etc., used mainly for compatibility with C.
  19. For an exact definition, see page 151 of the ARM.
  20.