What does the _bc stands for?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/04/2007 at 07:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.x
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;---------
I usually use a generic framework to code my plug-ins. In them, I use, for example, the line:PluginDialog::SetContainer(_bc) { bc = _bc->GetClone(); }
Why does the bc has an underscore behind it? What does the underscore stands for? I mean, what is the difference between bc and _bc ?
Thank you in advance for any reply.Rui Batista
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2007 at 03:14, xxxxxxxx wrote:
Hello Rui,
AFAIK, names that begins with an underscore are reserved for libraries like stl or for compilers it self.
So actually it is better to use bc_ instate of _bc.
But in some cases underscore are used to do something like this.
class SomeClass { SomeClass(BaseContainer &_bc) : bc(_bc) {} BaseContainer bc; }; // I would prefer to use something like this class SomeClass { SomeClass(BaseContainer &bc;) : m_bc(bc) {} BaseContainer m_bc; };
If this is not answer to you question then I have understand you question wrong.
Remo
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2007 at 03:25, xxxxxxxx wrote:
So, the underscore is just another character to make the variable _bc different from bc?
The underscore has no special function like, for example the ! or & characters?
That means that I could very well write:PluginDialog::SetContainer(other_bc) { bc = other_bc->GetClone(); }
instead of:
PluginDialog::SetContainer(_bc) { bc = _bc->GetClone(); }
is it?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2007 at 03:49, xxxxxxxx wrote:
Yep, it´s just a variable name, like you are Rui and I am Samir
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2007 at 03:57, xxxxxxxx wrote:
Thank you both
That really helped ALOT!!!