Article Preview
Buy Now
| Print: | |
| PDF: |
Beyond The Limits
A home-brewed string replacement for RB 5
Issue: 1.6 (June/July 2003)
Author: Didier Barbas
Article Description: No description available.
Article Length (in bytes): 7,258
Starting Page Number: 46
RBD Number: 1625
Resource File(s):
1625.sit Updated: Friday, October 17, 2003 at 12:21 PM
Related Link(s): None
Known Limitations: None
Excerpt of article text...
The release of RB 5.0 has been the subject of many, many comments on the REALbasic Beta Mailing List; not all of them are cheerful, but most are constructive. 5.1 should be out by the time this issue of RB Developer is published -- we are playing with 5.1bfc1 right now -- so by the time you read this you will have a pretty stable release to use. There are many new features in RB 5, the most obvious being the new compiler. But many additions and new features were introduced in RB 5. Here's one I'd like to discuss: the Operator_ keyword.
The Basics
The new Operator_ enables you to provide comparison and mathematic operations on custom classes. The operators are:
* Operator_Add[Right]
* Operator_Subtract[Right]
* Operator_Multiply[Right]
* Operator_Divide[Right]
* Operator_IntegerDivide[Right]
* Operator_Modulo[Right]
* Operator_Negate
* Operator_Compare
* Operator_Convert
(Note: The -Right suffix is for operations in reverse order (instead of 'custom class + native type, you want to do 'native type + custom class').)
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.
|








