problem with size_t and an easy solution

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 8 19:30:08 PST 2014


On Mon, 08 Dec 2014 16:03:42 +0000
Kagamin via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On Monday, 8 December 2014 at 08:46:49 UTC, bearophile wrote:
> > Freddy:
> >
> >> Why not keep size_t implictly convertable but disallow it for
> >> usize.
> >
> > This is an interesting idea. (But the name "uword" seems 
> > better).
> >
> > Bye,
> > bearophile
> 
> As a legacy from 16-bit era word is ushort.
> I use intp and uintp.
i think that `intp` and `uintp` is very good. a little hard to read
maybe (too similar to `int` and `uint`).
-------------- 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/20141209/6e766390/attachment.sig>


More information about the Digitalmars-d mailing list