List Info

Thread: Re: BR 1582430: Allow numbers with leading + or - for %ifnum




Re: BR 1582430: Allow numbers with leading + or - for %ifnum
user name
2008-02-16 17:40:59
> >> Allow numbers with a leading + or - to return
true for %ifnum.
> >
> > This suffers from the problems described in the SF
request.
> >
> > For example, with your new behavior, how does one
handle
> > cases where the leading token _is_ meant to be a
unary op,
> > rather than a number with a leading sign?
>
> No difference, really.

I don't follow.

In case I wasn't making myself clear enough -- how does one
get this new %IFNUM to reject e.g. "+ n", i.e. the
sequence of
three tokens (unary add, whitespace, number), as a number?

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nasm-devel mailing list
Nasm-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nasm-devel

Re: BR 1582430: Allow numbers with leading + or - for %ifnum
user name
2008-02-16 17:50:09
anonymous coward wrote:
>>>> Allow numbers with a leading + or - to
return true for %ifnum.
>>> This suffers from the problems described in the
SF request.
>>>
>>> For example, with your new behavior, how does
one handle
>>> cases where the leading token _is_ meant to be
a unary op,
>>> rather than a number with a leading sign?
>> No difference, really.
> 
> I don't follow.
> 
> In case I wasn't making myself clear enough -- how does
one
> get this new %IFNUM to reject e.g. "+ n",
i.e. the sequence of
> three tokens (unary add, whitespace, number), as a
number?
> 

What's your usage case?

	-hpa

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nasm-devel mailing list
Nasm-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nasm-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )