How get two classes to know about each other?

This is a discussion on How get two classes to know about each other? within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by brewbuck The trouble is just syntactic. If you write your functions out-of-line you will not encounter these ...

  1. #16
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    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
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  2. #17
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    4,214
    O_o

    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.)

    Soma

Page 2 of 2 FirstFirst 12
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, 04: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21