Re: String concatenation design
- From: "Barry" <barryg@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 05:49:22 -0600
<andy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1143540676.814646.118800@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
used in
Anton Treuenfels wrote:
I have a numeric expression parser that allows literal strings to be
arelogical expressions (such as comparisons) because the results of those
becausenumeric. I gave the relevant string operators a very high precedence
that seemed the easiest way to prevent numeric operators from engaging
string operands.
So the expression
"ABC" < "DEF" + 1
is parsed as
("ABC" < "DEF") + 1
and yields the value 2.
why does boolean + numeric -> numeric.
boolean + numeric could go to boolean or be disallowed IMO.
Or is the current semantic particularly useful and if so where?
regards
Andy Little
Who said anything about booleans?
.
- Follow-Ups:
- Re: String concatenation design
- From: andy
- Re: String concatenation design
- References:
- String concatenation design
- From: Anton Treuenfels
- Re: String concatenation design
- From: andy
- String concatenation design
- Prev by Date: Re: Transfer data between processes
- Next by Date: Re: how to print all the combinations ??
- Previous by thread: Re: String concatenation design
- Next by thread: Re: String concatenation design
- Index(es):
Relevant Pages
|