Ideally, it should be auto-converted to the common denominator, i.e. string. But the error has often forced me to format the numeric value, so I have little objection to the current behaviour.
--- Aparajita Fishman <[EMAIL PROTECTED]> wrote: > Hi, > > I am thinking of making a change in the behavior of > the interpreter, > but I want to get your opinions first. > > If there is an expression like this: > > "Time:" + current time > > I already auto-convert the expression to the right > of the + to text > if the expression to the left is text. However, you > cannot do this: > > $i + " items" > > where $i is a number (or other non-text type). I am > thinking that I > could just as easily auto-convert the expression to > the left if the > expression to the right is text. > > I just want to make sure that this is a behavior > that is desired. > > BTW, there are several new (and better) ways of > formatting string > expressions in v4, but you'll have to wait till next > week to find out > what they are. ;-) > > Regards, > > Aparajita > Victory-Heart Productions > www.aparajitaworld.com > > "If you dare to fail, you are bound to succeed." > - Sri Chinmoy | www.srichinmoylibrary.com > > _______________________________________________ > Active4D-dev mailing list > [email protected] > http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev > Archives: > http://mailman.aparajitaworld.com/archive/active4d-dev/ > sincerely, m|a ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs _______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
