Why the hell doesn't foreach decode strings

Jonathan M Davis jmdavisProg at gmx.com
Fri Oct 21 03:02:52 PDT 2011


On Friday, October 21, 2011 11:52:25 Martin Nowak wrote:
> On Fri, 21 Oct 2011 02:20:48 +0200, Jonathan M Davis <jmdavisProg at gmx.com>
> 
> wrote:
> > On Thursday, October 20, 2011 16:57 Martin Nowak wrote:
> >> At least it was your ∞ that revealed my bug.
> > 
> > The ∞ in PosInfInterval (or NegInfInterval), I presume (I don't know
> > where
> > else I've used ∞)? I'd forgotten about that. Well, it's good to know
> > that
> > someone is putting those to good use. I've been wondering how much the
> > intervals and ranges in std.datetime actually get used (which reminds me
> > that
> > I need to do some work on making the ranges somewhat easier to use). In
> > theory, they're very useful, but I don't know how much that's actually
> > been
> > shown in practice thus far.
> > 
> > - Jonathan M Davis
> 
> Sorry for this, but I was only using them so far as lexing and reassembling
> std.datetime out of tokens was diff proof.
> Which failed exactly after the ∞ symbol.

Oh well. At least you were able to find your bug and understand what was going 
on.

> But infinite intervals might come in handy, which is one thing I appreciate
> about datetime, you know beforehand that you can find a nice solutions to
> your problem in there.

That's the idea at least.

- Jonathan M Davis


More information about the Digitalmars-d mailing list