[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] possible bug



Kathy,

the command 'show leaving curr = |' $currency_cd '|'  should cause a compile 
error, because there is no command 'show ....  I should be getting some kind 
of error because it should be treating everything between the ticks as a 
literal string, yet it is executing the show...... oh, wait, I see what is 
happening, but I don't know why - it is treating the show statement within 
the #ifdef and the string outside as a concatination of just one string.  I 
would not have expected it to work that way because show is supposed to stop 
at the end of a line......  Hmmm, on further testing a quoted string on a 
line following a show with a quoted string will just concatenate the two 
strings together.  I just thought it would stop the show at the end of the 
line.

learn something new every day, and the day isn't a complete loss.

clark 'the dragon' willis


PSA: Salary <> Slavery.  If you earn a salary, your employer is renting your 
services for 40 hours a week, not purchasing your soul.  Your time is the 
only real finite asset that you have, and once used it can never be 
recovered, so don't waste it by giving it away.

"Time is the coin of your life. It is the only coin you have, and only you 
can determine how it will be spent.  Be careful lest you let other people 
spend it for you."

Carl Sandburg
(1878 - 1967)




----Original Message Follows----

What do you think it should look like?

>From what I see, the output is correct for what you have.

-----Original Message-----

Hi all,

I think I found an sqr bug, but it doesn't cause anything to crash, when I
would have expected a compile erro at the least.  I fat-fingered the
following lines in a procedure:

#ifdef debugb
   show 'Exiting  GET THE RECORDS'
#endif

'show leaving curr = |' $currency_cd '|'       <----- look at first tick

end-procedure ! GET THE RECORDS

and in my log file it prints like this:

Exiting   GET THE RECORDSshow leaving curr = |USD|

weird, huh?  Can anyone explain this behavior?

clark 'the dragon' willis

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users