This forum is in archive mode. You will not be able to post new content.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nfite

Pages: [1]
1
C - C++ / Re: someone rumble about Forward declaration.
« on: September 27, 2013, 03:14:29 PM »
Indeed it did. But you have to post a (BIG) intro in the introductions board, (where we will welcome you) before posting anything.
Hi, by the way :p
OH, sorry. Am gonna rush there right now but i couldn't resist this.

2
C - C++ / Re: someone rumble about Forward declaration.
« on: September 27, 2013, 02:51:33 PM »
Like a function prototype, a forward declaration of a class declares its class name without it definition. Hence the name can be used with any undereferenced pointers or references before its definition. With forward declaration, you unleash the power of circular relationships between header files in your lib without going for circular dependecies that the compile really screams about.

For when you can help it, please stay away from circular dependecies between modules though those between classes can be torelable.

Hope i helped!

EDIT*: For dependecy management, check out cinclude2dot which is a perl script which analyses C/C++ code and produces a #include dependency graph, and makedep which is a C/C++ dependecy generator.

Pages: [1]


Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.