[Issue 9447] iota should generate char intervals too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 26 00:12:16 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9447


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #4 from monarchdodra at gmail.com 2013-07-26 00:12:08 PDT ---
(In reply to comment #3)
> (In reply to comment #2)
> > It is definitely _not_ the case that adding 1 to a wchar or dchar will
> > necessarily result in a valid value. In both of them, there's a block in the
> > middle which is invalid. Just like at the implementation of isValidDchar.
> 
> Is this the only restriction though? If that's so, it should be easy to
> implement this feature with a single runtime check to verify the range doesn't
> go over the invalid block.

I think that is a bad idea. We should keep it simple: User asks to iterate over
xchars of values low to high, and that is all we should return.

When it comes to wchars or dchars, the notion of "invalid" is really in the eye
of the beholder anyway.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list