Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    What does the _bc stands for?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 403 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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 🙂

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              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!!!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post