home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16040 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.1 KB

  1. Path: sparky!uunet!mcsun!sunic!isgate!krafla!yngvi
  2. From: yngvi@rhi.hi.is (Yngvi Sigurjonsson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Pointer to constructors||class?
  5. Message-ID: <5591@krafla.rhi.hi.is>
  6. Date: 10 Nov 92 17:31:34 GMT
  7. Sender: usenet@rhi.hi.is
  8. Lines: 26
  9. Nntp-Posting-Host: hengill.rhi.hi.is
  10.  
  11.  
  12.  
  13. How can I get a pointer to constructor?? I would like too be able to
  14. have a pointer to either a class or class constructor. I had intended to
  15. use constructor pointers in a drawing program in such a way that mouse
  16. down would do:
  17.  
  18. ObjPointer= new ConsPointer(x,y)
  19.  
  20. and then i could use virtual functions described for Object to work with
  21. derived objects.
  22.  
  23. I imagine I could define wrapper functions, and pointers too those to
  24. call to the constructors but I really dont want to.
  25.  
  26. Thanks in advance for any advice or pointers :).
  27.  
  28.  
  29.  
  30.  
  31.  
  32. -- 
  33.  /| Yngvi Thor Sigurjonsson         |\ |\ ______________________/|
  34. | | Fljotasel 17                    | || |   yngvi@rhi.hi.is   | |
  35. | | Reykjavik Iceland               | || |_____________________| |
  36.  \|_________________________________|/ |/_______________________\|
  37.