Search: in
REALbasic
REALbasic Encyclopedia
  Tutorials     Encyclopedia     Dictionary     Directory  
REALbasic Email this to a friend      REALbasic

REALbasic

REALbasic
REALbasic

REALbasic

REALbasic (RB) is an object-oriented dialect of the BASIC programming language developed and commercially marketed by REAL Software, Inc in Austin, Texas for Mac OS X, Microsoft Windows, and Linux.

Contents


History

REALbasic was created by Andrew Barry. It was originally called CrossBasic due to its ability to compile the same programming code for Mac OS and Java (although the integrated development environment was Mac only). In 1997 CrossBasic was purchased by FYI Software which renamed it REALbasic as well as renaming the company REAL Software. At this time they dropped the Java target, later replacing it with a Windows target and database support. The IDE is now available for Microsoft Windows, Mac OS X, and Linux and can compile applications for Windows (Windows 2000 and higher), Mac OS X (PowerPC, Intel, and Universal Binary) and x86 Linux.

Language features

RB is a strongly-typed language with minimal automatic type conversion, which supports single inheritance and interfaces, class methods and class properties, automatic memory management via reference counting, and operator overloading. A very important feature is the ability to extend (not just inherit from) existing classes, like Objective-C Categories. This considerably reduces the need for the Abstract Factory Pattern, which complicates using Application Frameworks in Java and C++. REALbasic also includes delegates, introspection, and namespace support, which allows modules to contain classes, interfaces and other modules.

Framework features

As described in the language reference, its built-in framework supports (REAL Software 2008):

The framework functionality can also be extended by creating plugins using the Plugin SDK provided by REAL Software. Plugins are created using C/C++ with a variety of supported compilers, including Metrowerks Code Warrior, Microsoft Visual Studio, gcc and Xcode. Plugins can support any platform REALbasic supports, but are not required to support all platforms.

File format

The source file format contains window and control placement data and is proprietary, although XML import and export are supported. All source code can be contained in one project file, but it is also possible to have classes/modules in separate files in the same way as most other languages or dialects can. REALbasic compiles directly to machine language for each platform that it supports. REALbasic 2006 Release 3 and newer also supports a human-readable version control format which allows easy collaboration with tools such as Subversion or CVS.

Current editions of IDE

A typical GUI building session in REALbasic's IDE
A typical GUI building session in REALbasic's IDE
There are two versions of the IDE:

  • The professional edition can compile programs for Mac OS X (PowerPC Carbon Mach-O, i386 Carbon Mach-O and Universal Binary), Linux and Windows from the same source code file; it can also access databases (Oracle, PostgreSQL, ODBC, etc.) including the built-in single-user REAL SQL Database engine based on SQLite; it compiles console applications, has a code profiler, can remote debug and has numerous other features.
  • The personal edition only compiles programs for the platform that the IDE is running on (either Windows, Linux or Mac), and does not allow access to databases other than the built-in REAL SQL Database.

IDE features

Both versions of the IDE permit building the application's graphical user interface by dragging the controls from a toolbar to their parent window. Layout of the controls is helped by the IDE that permits aligning them (both horizontally and vertically), and which gives information about the distance between controls, or between a control and the window borders.

Like many modern IDEs, the code editor supports customizable syntax highlighting, autocompletion and refactoring tools. The IDE also includes editors for menus and database schema as well as viewers for multimedia files such as pictures, movies or sounds.

The IDE gives you access to scripting features via RBScript, which allows you to control the IDE for doing automated tasks such as running regression tests or doing nightly builds. The scripts can either be global or project-specific.

REALbasic supports incremental compilation, whereby the compiler only needs to recompile the parts of your project which have been modified. For instance, if you only modify the body of a method, then just the project item containing that method is recompiled (instead of your entire application).

Example code

This is an example of operator overloading for a hypothetical Complex class which permits to sum a real to a complex number, and to sum two complex numbers:

The same function can be defined to accept Double datatype values. This code shows how to use the Complex class to sum a real with a complex number:

See also

Comparable Basic Dialects

Other Programming Languages

References

External links

de:REALbasic et:REALBasic es:REALbasic fr:REALbasic it:REALbasic nl:REALbasic ja:REALbasic ru:REALbasic sv:REALbasic zh:REALbasic


REALbasic
REALbasic
REALbasic

Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article

REALbasic
REALbasic
Search for REALbasic in Tutorials
Search for REALbasic in Encyclopedia
Search for REALbasic in Dictionary
Search for REALbasic in Open Directory
Search for REALbasic in Store
Search for REALbasic in PriceGig


Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

REALbasic
Advertisement

Advertisement



REALbasic
REALbasic top REALbasic

Home - Add TutorGig to Your Site - Disclaimer

©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement