PureBytes Links
Trading Reference Links
|
Hello,
You should read "CHANGE LOG" below for more detailed
explanation:
numbers (floats) are now automatically 'upsized' to arrays on first use of
l-value array subscript operator without causing error. Also r-value
subscript can be applied to numbers and return the number itself without causing
error, but the underlying variable remains just a single number.This
allows to easily intialize arrays to any value without need to write
loops.Example 1:in previous versions you would need to
write:for( i = 0; i < BarCount; i++ ) myarray[ i ] = 0 ; //
fill with zerosmyarray[ 5 ] = 6; // write value to 5th element of the
arraynow you can write simply:myarray = 3; //
initialize, at this moment myarray is just a numbermyarray[ 5 ] = 6; //
write value to 5th element of the array, the variable is automatically//
upsized to array and all elements are filled with a numeric value // that
was originally placed in myarray variable/* myarray is holds now the
array filled with values of 3 except element 5 that has value of 6
*/mynumber = 5;test = mynumber[ 7 ]; // previous versions would give
an error message here// now subscript operator for r-value numeric variable
// is allowed and returns just the number // and variable is not upsized
to array unless appears on left side// of assignment (l-value)/*
mynumber variable here is still a number */WriteVal( test
);
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Silvarius
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, May 20, 2003 11:56
AM
Subject: RE: [amibroker] AmiBroker 4.38.0
BETA released
<SPAN
class=333514809-20052003>Hello Tomasz,
<SPAN
class=333514809-20052003>
<SPAN
class=333514809-20052003>Thank you for this new release. I fear I don't
understand very clearly the following sentence, included in the
improvements of the new beta.
numbers (floats) are now automatically
'upsized' to arrays on first use of l-value array subscript operator without
causing error.<SPAN
class=333514809-20052003><FONT
color=#0000ff>
<FONT
color=#0000ff>Best regards, Jérôme ULRICH <FONT
color=#0000ff> <SPAN
class=333514809-20052003> Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|