Announcement

Collapse
No announcement yet.

Real constants

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

  • Real constants

    How do you create a real constant in PB? Integer and
    string seem covered nicely, but can't find a solution of reals.


  • #2
    Hi David,

    PowerBASIC does not support floating-point equates at this time, but this feature request is already on the "wish list"...



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

    Comment


    • #3
      On the same list, do we have constant/equates allowed

      1. Without the leading percent sign?
      2. In the format:
      Code:
      #define  my_const    500  [(+|OR)|(other_const|literal)]
      These features would be very handy for those of us who work with SDK-style programming with dialogs and controls defined in resource files, as it would allow us to #INCLUDE (#include) the same file in both our resource script and program source code.


      MCM


      [This message has been edited by Michael Mattias (edited June 03, 2001).]
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        They have been asked for before, and they are also on the list.

        Personally, I believe the use of equates/constants without a leading % or $ symbol adds to the ability to create obfuscated code, so I would not endorse such a feature. However, it is the decision of R&D, not Tech Support, so we'll just have to see what "develops"!

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

        Comment


        • #5
          .. [a new features] is the decision of R&D, not Tech Support, so we'll just have to see what "develops"!
          Hmm, I'd have thought it might be the customers' decision.

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

          Comment


          • #6
            [QUOTE]Originally posted by Michael Mattias:
            Hmm, I'd have thought it might be the customers' decision.

            Customers certainly exercise a purchase decision. And customer opinions are, of course, highly valued and reviewed. But haven't you taken this to a rather unusual level? You truly believe that customers should each design their own PowerBASIC compiler and we should deliver? Would each customer get his own personal version, or would you place yourself in charge to collaborate the design for everyone else?

            Tell me, when you bought your last Yugo, did you do the engineering work for them before you took delivery?

            Regards,

            Bob Zale
            PowerBASIC Inc.

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

            Comment


            • #7
              Well, I'm certain Mr Edmonds meant to say, "R &D will make that decision after reviewing and considering all the customer requests.

              But since he didn't say that, I thought it reasonable to mention that customers do (should) have a huge impact on any product's features.

              Even the Yugo.

              MCM

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

              Comment


              • #8
                Off topic and irrelevant, i know, however can someone tell me
                what a Yugo is?

                Ta!

                Danny (...from England! )

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


                [This message has been edited by danny greenwood (edited June 04, 2001).]

                Comment


                • #9
                  Sure, Danny! The Yugo, was a small, very inexpensive auto imported to the U.S. from Yugoslavia some years back. It quickly gained a reputation as being something less than a technical marvel. I believe it has since gone the way of the Studebaker, Deusenberg...

                  Regards,

                  Bob


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

                  Comment


                  • #10
                    Bob,

                    Getting further off topic: The big differenct was that the Yugo
                    was a POS and the Dusenburg was, well a Duzi, hence the saying;
                    "It's a duzi! (spelling?). If you're ever in the Los Angeles area
                    go to the Peterson Automotive Museum and see a room full of them.
                    They are amazing!



                    ------------------
                    "There are two novels that can change a bookish fourteen-year old's life: The Lord of the Rings and Atlas Shrugged. One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world. The other, of course, involves orcs." - John Rogers

                    Comment

                    Working...
                    X