Announcement

Collapse
No announcement yet.

object oriented basic

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

  • object oriented basic

    I recently read the article "Object Oriented Basic"
    ( http://www.powerbasic.com/files/pub/docs/OOBTXT.ZIP )
    which essentially describes creating a frontend to
    the PB compiler. This would translate the object oriented
    basic code into error free PB code to be compiled by PB.
    The article also does an excellent job at explaining oop,
    and outlines an oo basic syntax.
    I have recently been working on a project, which I
    am calling the Basic Development Kit (bdk), which will
    include a basic preprocessor, some useful functions, and
    hopefully a project manager. BDK will be public domain in
    its entirity and open source as well. I am about 90% done
    with the preprocessor and a few other utilities, but I
    haven't even begun on the project manager. After reading
    the article, I figured why not implement an oo basic and
    include it as well.
    Obviously, this would be a huge task for one person
    alone. Given how well the open source community has fared,
    and how loyal PB programmers are to PB, I figured that it's
    pretty likely that alot of people will want to help out.
    Especially since this will be an improvement to both the
    basic language and PB (and the fact that it'll be free).
    As I said, I still have a little bit left on the
    preprocessor so I plan to finish it up, release the
    beta, and then dive into the object oriented basic.
    Anyone who is willing to help out is welcome.

    Thanks in advance,

    Dave

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

  • #2
    The Open-Source development model's merits can be debated, as can the willingness of others to contribute. As with many people, I'd like to contribute to such a project, but I don't have time to do this between work and school. In the coming months, perhaps.

    Some issues to think about when designing your system
    - multiple vs single inheritence
    - strict private/public (purist view) vs private/protected/public (c++/java view)
    - virtual methods
    - pure OO (smalltalk, purist) or hybrid (c++/java and probably more practicle too)

    Some of this is hard to implement in pure powerbasic. For instance, virtual methods can be implemented without help from the language through tables of function pointers in C, for example (see gtk+ which is completely object-oriented and written in straight C)

    Michael



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

    Comment


    • #3
      Hi all,

      OOP is very use full in PB but not 100% OOP. I think build-in
      more hybrid OOP with OOP programming and Structured programming to
      Let stay the default concepts like DDT,SDK and adding only OOP but
      not pure 100% OOP because that's then very deficult for learn
      programming in OOP
      The concept is thinking in objects and classes.



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

      Comment


      • #4
        I just read the article you mentioned. Very interesting. It addresses most of the issues I mentioned. It would be easiest to model it after C++'s method of OO, and then parse directly to C++, according to it. Interesting. Maybe it's still a pipe dream, but we'll see. I may have some interesting stuff for you, Dave, in the next few months (or years.. .

        Is there a web site where I can read more about your preprocessor and things?

        Michael

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

        Comment


        • #5
          I just got a web site (http://www.dvenable.com/bdk), but I
          gotta warn you, it's in pretty bad shape right now. Alot of
          the info is outdated as I've updated the preprocessor (among
          other things) quite a bit since I last updated the website.
          However, I plan to work on it pretty soon and get it a little
          more up to speed.

          Dave

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

          Comment


          • #6
            Hi David,

            i´m interested to help programing the project manager.

            What´s Your targets ???

            Regards

            Matthias Kuhn ([email protected])

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

            Comment


            • #7
              Hi,

              I'm build and create an wingui ide like delphi
              written in delphi 5.0

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

              Comment


              • #8
                Matthias,

                I'll send you an email explaining how the project manager
                needs to behave. Anyone else who would like a copy should send
                me an email at [email protected] and I'll send you one as well.

                Stephane,

                That sounds great, keep me updated. If you'd like some
                more info on how it needs to interact with the preprocessor
                and (eventually) the translator send me an email at the above
                address and I'll let you know.



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

                Comment

                Working...
                X