Revision as of 05:15, 5 June 2006 editZetawoof (talk | contribs)Extended confirmed users, Pending changes reviewers, Rollbackers9,441 edits gah, 7RR← Previous edit |
Latest revision as of 20:52, 10 March 2017 edit undoChristian75 (talk | contribs)Extended confirmed users, New page reviewers, Pending changes reviewers, Rollbackers114,303 edits {{redr}} is deprecated - converting to {{Redirect category shell|}} using AWB |
(313 intermediate revisions by more than 100 users not shown) |
Line 1: |
Line 1: |
|
|
#REDIRECT ] |
|
{{Infobox Software | |
|
|
name = REALbasic |
|
|
| logo = ] |
|
|
| screenshot = ] |
|
|
| caption = The REALbasic IDE running on Mac OS X |
|
|
| developer = REAL Software, Inc. |
|
|
| latest_release_version = 2006 R2 |
|
|
| latest_release_date = ] ] |
|
|
| operating_system = ], ], ] |
|
|
| genre = ] |
|
|
| license = ] |
|
|
| website = |
|
|
}} |
|
|
|
|
|
|
|
{{Redirect category shell| |
|
'''REALbasic''' ('''RB''') is an ] dialect of the ] developed and commercially marketed by REAL Software, Inc in ] for ], ], and ]. |
|
|
|
{{R from former name}} |
|
|
|
|
|
{{R from merge}} |
|
== 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 ] was Mac only). It was then redubbed REALbasic by REAL Software when they took over development in ] and dropped the Java target. The IDE is now available for ], ] and ] and can compile applications for Windows (Windows 98 and higher), Macintosh (Classic and OS X) and ] Linux. |
|
|
|
|
|
== Language features == |
|
|
RB is a strongly-typed language with minimal automatic type conversion, which supports ] and ], ] ] and class properties, ], and ]. A very important feature is the ability to '''extend''' (not just ] from) existing classes, like ]. This considerably reduces the need for the ], which complicates using Application Frameworks in ] and ]. |
|
|
|
|
|
== Framework features == |
|
|
As described in the language reference, its built-in framework supports |
|
|
* ] calls to compiled ] libraries on all supported platforms, |
|
|
* ], |
|
|
* ], |
|
|
* ], |
|
|
* real-time ], |
|
|
* ], |
|
|
* ] embedded in REALbasic programs through ], |
|
|
* ], |
|
|
* ], |
|
|
* ], |
|
|
* sockets (both ] and ]), |
|
|
* sound, |
|
|
* ] (Professional edition only), |
|
|
* ], |
|
|
* full ] support, |
|
|
* ] parsing and generation, |
|
|
* ] datatypes compatibility, |
|
|
* ] and ] application support (Professional edition only) |
|
|
* Mac-specific: |
|
|
** ], |
|
|
** ], |
|
|
** ] on Mac and Windows, |
|
|
* Windows-specific: |
|
|
** ] and ] |
|
|
** ], |
|
|
** ], |
|
|
(REAL Software 2006). |
|
|
|
|
|
== 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 ] for each platform that it supports. |
|
|
|
|
|
== Current Editions of IDE == |
|
|
] |
|
|
There are two versions of the IDE: |
|
|
* The professional edition can compile programs for Mac OS X, ], Linux and Windows from the same ] file; it can also access ]s (], ], ] etc.) including the built-in single-user REAL SQL Database engine based on ]; it compiles console applications, can remote debug and has numerous other features. |
|
|
* The standard 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. |
|
|
|
|
|
Both versions of the IDE permit building the application's ] 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 informations about the distance between controls, or between a control and the window borders. |
|
|
|
|
|
== Example code == |
|
|
This is an example of operator overloading for a hypothetical Complex class which permits to sum a ] to a ], and to sum two complex numbers: |
|
|
|
|
|
<pre> |
|
|
Function Operator_Add(rhs as Single) As Complex |
|
|
Dim ret As New Complex |
|
|
ret.R = Self.R + rhs |
|
|
ret.I = Self.I |
|
|
Return ret |
|
|
End Function |
|
|
|
|
|
Function Operator_Add(rhs as Complex) As Complex |
|
|
Dim ret As New Complex |
|
|
ret.R = Self.R + rhs.R |
|
|
ret.I = Self.I + rhs.I |
|
|
Return ret |
|
|
End Function |
|
|
</pre> |
|
|
|
|
|
The same function can be defined to accept ] ] values. |
|
|
This code shows how to use the Complex class to sum a real with a complex number: |
|
|
|
|
|
<pre> |
|
|
Dim First As New Complex(0, 1) |
|
|
Dim Second As New Complex(1, 1) |
|
|
Dim Sum As Complex |
|
|
Sum = First + 5.0 + Second |
|
|
// Sum will be (6, 2) |
|
|
</pre> |
|
|
|
|
|
== References == |
|
|
* {{cite web |
|
|
|url=http://www.theregister.co.uk/2005/09/13/review_realbasic_2005/ |
|
|
|title=RealBasic 2005 for Mac, Windows and Linux |
|
|
|year=] ] |
|
|
|last=Smith |
|
|
|first=Tony |
|
|
|accessdate=2006-04-11 |
|
|
|publisher=] |
|
|
}} |
|
}} |
|
* {{cite web |
|
|
|url=http://programming.linux.com/programming/05/08/03/1639214.shtml?tid=22 |
|
|
|title=Review: REALBasic 2005 for Linux |
|
|
|year=] ] |
|
|
|last=Barr |
|
|
|first=Joe |
|
|
|accessdate=2006-04-11 |
|
|
|publisher=Linux.com |
|
|
}} |
|
|
* {{cite web |
|
|
|url=http://www.realsoftware.com/download/ |
|
|
|title=REALbasic Language Reference |
|
|
|year=] ] |
|
|
|last=REAL Software |
|
|
|accessdate=2006-04-11 |
|
|
|publisher=] |
|
|
}} |
|
|
|
|
|
==External links== |
|
|
*, makers of REALbasic. |
|
|
* |
|
|
*, a wiki dedicated to REALBasic documentation |
|
|
* |
|
|
* |
|
|
*, a wiki-powered developer community and code repository |
|
|
* |
|
|
|
|
|
== See also == |
|
|
*] |
|
|
*] |
|
|
|
|
|
] |
|
|
] |
|
|
] |
|
|
] |
|
|
|
|
|
] |
|
|
] |
|
|
] |
|
|
] |
|