Shouldn't have IsAlpha() from std.uni has a different name to avoid confusing from std.ascii?

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 21 08:36:30 PDT 2014


On Thu, 21 Aug 2014 15:27:46 +0000
MacAsm via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> Any thoughts? I don't know if I'm missing something but two 
> functions (and not methods) with same name is very bad.
they doing much the same, but for different character sets. two
different names will just confuse users.

you can use fully qualified names and/or local imports to use exactly
what you want. something like:

  void myFunc (char ch) {
    import std.ascii;
    if (std.ascii.isAlpha(ch)) ...
  }

local imports rocks! ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140821/1c4f0774/attachment-0001.sig>


More information about the Digitalmars-d mailing list