memoize (is this a fix for overloading?)
Jonathan M Davis
jmdavisProg at gmx.com
Tue Jan 4 14:58:56 PST 2011
On Tuesday, January 04, 2011 14:49:11 %u wrote:
> > There's still the risk of keeping multiple hashes. Consider:
> >
> > ulong fun(ulong n) { ... }
> > alias memoize!fun mfun;
> >
> > mfun(5); // creates hash ulong[int]
> > mfun(5u); // creates hash ulong[uint]
> > mfun('5'); // creates hash ulong[char]
>
> Ohhh I see... so you're basically looking for a compile-time version of
> overload resolution, right? Because things seem to be getting complicated
> very quickly.
>
>
>
> (An unrelated side note: I'm new to newsgroups, and I was wondering, what
> program do people mainly use for communication? I'm using the web
> interface, but do most people use Thunderbird or something? Thank you!)
I signed up for the mailing list and use kmail as my mail client. But if you use
the mailing list, then you can use whatever works with your e-mail service,
which would presumably include whatever mail clients work on your system. I was
using knode (KDE's newsreader program), but then the state of messages (like
which you've read and the like) is only on one machine. With the mailing list
and IMAP, I can have it synced between machines.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list