BBC BASIC for Windows
« Component-Based Programming »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:34pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Component-Based Programming  (Read 512 times)
kolesiko
New Member
Image


member is offline

Avatar




PM


Posts: 2
question Component-Based Programming
« Thread started on: Oct 7th, 2013, 08:56am »

Is BBC BASIC component-oriented language, as it is stated in russian Wikipedia? If yes, how to write big program, that consist of sub-programs? In other words, I need the next level of abstraction after the functions and procedures. I'm writing a program that consists of three large, almost unrelated parts. Each part is ready, but tie them together doesn't work. I don't want to learn OOP and migrate on .NET.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
question Re: Component-Based Programming
« Reply #1 on: Oct 7th, 2013, 10:59am »

on Oct 7th, 2013, 08:56am, kolesiko wrote:
I need the next level of abstraction after the functions and procedures.

The 'next level of abstraction' is the module or library. That is, a separate source file which is incorporated in the program by means of the INSTALL statement. In an extreme case your main program could consist of nothing more than a series of INSTALLs:

Code:
      INSTALL @dir$+"MODULE1"
      INSTALL @dir$+"MODULE2"
      INSTALL @dir$+"MODULE3"
      INSTALL @dir$+"MODULE4"
      PROC_start 

To work in this environment you will almost certainly want in run the 'Module Viewer' utility (usually Slot 4 in the Utilities menu) which provides the IDE with a tabbed interface. The editor tabs (apart from the first) are 'read only' - hence Module Viewer - but double-clicking on a tab causes a new instance of the IDE to open with that module loaded for editing.

If you regularly use this mode of operation you can create a desktop shortcut which will run BBC BASIC for Windows with the Module Viewer automatically loaded. To do that run moduleviewer.exe (which you can find in the ADDINS subdirectory of your BB4W installation folder) and select the Create desktop shortcut box.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls