gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Re: darcs vs tla


From: Andrew Suffield
Subject: Re: [Gnu-arch-users] Re: darcs vs tla
Date: Fri, 12 Nov 2004 16:34:52 +0000
User-agent: Mutt/1.5.6+20040907i

On Fri, Nov 12, 2004 at 04:25:54PM +0000, Catalin Marinas wrote:
> Andrew Suffield <address@hidden> writes:
> > On Fri, Nov 12, 2004 at 10:37:02AM +0000, Catalin Marinas wrote:
> >> for_each(words.begin(), words.end(), add_to_dict(dict));
> >
> > That's valid C code. You just need a library...
> 
> Partly true, the add_to_dict here is a callable object. The difference
> in C++ is that you write add_to_dict once and use it with any dict
> object (or map if we stay in the STL area).

No, that's easy in C. The thing about C++ is that it performs strong
static type checking on it.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]