[mercury-users] Strange behavior of string__to_int in Mercury
Ralph Becket
rafe at cs.mu.OZ.AU
Thu Jul 1 11:13:32 AEST 2004
Gregory D. Weber, Wednesday, 30 June 2004:
> If S = "+" or "-", then
>
> string__to_int(S, I)
>
> succeeds with I = 0.
>
> Shouldn't it succeed only if S has at least one digit?
> (It does fail if S = "".)
This is a bug - many thanks for spotting it. I'll fix it in the next
day or two.
-- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list