[M3devel] Fwd: Re: bug in Fmt.F

Rodney M. Bates rodney_bates at lcwb.coop
Tue Nov 18 20:00:21 CET 2014




-------- Original Message --------
Subject: Re: [M3devel] bug in Fmt.F
Date: Mon, 17 Nov 2014 13:52:23 -0600
From: Rodney M. Bates <rodney_bates at lcwb.coop>
Reply-To: rodney.m.bates at acm.org
To: m3devel at elegosoft.com

Fixed by github commit 53d4f9ad2a63c5dc5df217523bb92bb635a3f17b

Also, added a comment in Fmt.i3, which said nothing about incomplete
format specifiers.  The implementation already attempted to treat
them as ordinary characters, but this was incomplete.

On 11/16/2014 04:24 AM, mika at async.caltech.edu wrote:
> Fmt.F("%s","X")
>
> produces "X" (right)
>
> Fmt.F("% %s", "X")
>
> produces "% X" (right)
>
> Fmt.F("%%s", "X")
>
> does not terminate (wrong)--should produce "%X"
>
> to produce "%X" workaround is
>
> Fmt.F("%s%s", "%", "X")
>
> but it really is a bug.
>
>      Mika
>
>

-- 
Rodney Bates
rodney.m.bates at acm.org





More information about the M3devel mailing list