Announcement

Collapse
No announcement yet.

Enhancement Request

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enhancement Request

    Is there any chance PB Would consider allowing // to act as a REM statement as well as the " ' " ???

    I Find that when I am porting code I have to convert all of these, not a big deal, but sure would be nice


    Scott

    ------------------
    Scott
    mailto:[email protected][email protected]</A>
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    It's been touted before, and the concensus from R&D is that PowerBASIC is PowerBASIC and not C/C++. That said, I'll still pass your request along though... nothing ventured, nothing gained!

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Reply to Lance:

      But it would be great if we could use .h files (#define) !!
      Resources are C, PB uses it


      ------------------
      [email protected]
      hellobasic

      Comment


      • #4
        There is a simple solution, use global replace in your text editor
        and replace "//" with "'"

        As some headers use the old C comment notation, doing only the C++
        would be little use. PB already has both basic and asm notation,
        why bother with redundant notation, C/C++ is C/C++, basic is basic.

        ------------------
        hutch at movsd dot com
        The MASM Forum

        www.masm32.com

        Comment


        • #5
          C and C++ can also be remmed as /* whatever
          whatever here too
          */

          Not just limited to "//". The "//" is generally used
          when one has a single line comment. I agree with Lance
          and Hutch, Basic is Basic and C is C.

          Cheers
          Cecil

          ------------------

          Comment


          • #6
            But it would be great if we could use .h files (#define) !!
            In the source code there is PB/Win32 source code to read a ".h" file, find all the "#define" and create a "8.bi" file with all the values changed to pb equates.

            That is this line:

            Code:
            #define WM_MY_COOL_MESSAGE     8000
            becomes:
            [code]
            %WM_MY_COOL_MESSAGE = 8000&
            [code]

            I don't have the url ref handy, but if you search under my name it should come up.

            Code is easy to modify if you want to do more with it.

            MCM

            Michael Mattias
            Tal Systems (retired)
            Port Washington WI USA
            [email protected]
            http://www.talsystems.com

            Comment


            • #7
              That's not the issue.

              The statement don't bring PB to close to C is something i don't support.
              If PB would accept C notation, why complain?
              Just don't use it if you don't want to.
              (ASM is included, you won't here me complain)

              The matter of the .h files is that they 'most likely' are gonna be used by my project(s).
              So renaming/converting is something i already do.
              Therefore my suggestion to combine these.
              It simply saves time.

              There are NO basic resource files!

              ?

              ------------------
              [email protected]
              hellobasic

              Comment


              • #8
                Just but a ' in front of your // like this:

                '//////////////////
                '// Ohhh Comments!
                '//
                '/////////////////
                '//
                '//

                That is what I do, it looks very neat.


                ------------------

                Comment


                • #9
                  How pretty!
                  Lance
                  mailto:[email protected]

                  Comment

                  Working...
                  X