![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Basic4ppc Wishlist Missing any feature? |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Quote:
|
|
||||
|
Yes you understand it right and yes it takes up more CPU cycles during mathematical operations compared to using strongly typed variables but that is the price you pay for the simplicity and ease of use of a weakly typed language and in most applications, even on a device, this is usually not a problem as there are other things that dominate execution time - like the user for many interactive applications.
If you really need to do intensive mathematics in Basic4ppc you can declare one or more arrays or structs as Double and use their elements for numeric calculations. As all numeric operations are done as Doubles this avoids converting to and from string values. In an optimised compiled app this will give you a good speed boost over normal string based non-array variables. To avoid the overhead of the array access for each variable fetch and use non-array variables you could use my MathRecompiler performance enhancer library. I believe Erel intends to introduce some form of type declaration for normal variables in some future release of Basic4ppc.
__________________
Sorry, but I don't answer questions by PM or email. Please post your queries in the forum. |
|
||||
|
Quote:
You will be able to declare the type of all variables (including sub parameters). The main types will be Number which is mapped to .Net Double, Integer which is mapped to Int32 and String (or undeclared).
__________________
Basic4ppc reference list |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing arrays to Subs. | jesb4ppc | Questions & Help Needed | 12 | 04-24-2009 09:05 AM |
| IDE subs list width | klaus | Beta Versions | 1 | 09-28-2008 03:56 AM |
| Redundant SUBs | badkarma | Basic4ppc Wishlist | 0 | 04-10-2008 07:50 PM |
| How to use timer to clock speed of subs? | Stellaferox | Questions & Help Needed | 4 | 02-28-2008 07:07 AM |
| Passing references to tables to subs | LineCutter | Questions & Help Needed | 5 | 05-31-2007 08:27 PM |