Thread: How get two classes to know about each other?

  1. #16
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Quote Originally Posted by brewbuck View Post
    The trouble is just syntactic. If you write your functions out-of-line you will not encounter these problems.
    Its a feature, not a bug

  2. #17
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008

    There really is no chance of an infinite loop beyond using insane methods involving 'goto'. (Which I'm sure would only work with SJLJ style exceptions.)

    Declaring a function as 'throw()' is more than just informative; a compiler will insert a 'terminate' try/catch block. (Which is why throw specifications should generally be avoided.) An exception can not "escape" from 'what()'. (Even if 'what()' wasn't declared as 'throw()' there are generally a finite number blocks as CornedBee said.)


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you Initialize all classes once with New?
    By peacerosetx in forum C++ Programming
    Replies: 12
    Last Post: 07-02-2008, 10:47 AM
  2. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  3. Exporting VC++ classes for use with VB
    By Helix in forum Windows Programming
    Replies: 2
    Last Post: 12-29-2003, 05:38 PM
  4. Prime Number Generator... Help !?!!
    By Halo in forum C++ Programming
    Replies: 9
    Last Post: 10-20-2003, 07:26 PM
  5. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 03:49 AM