Re: globals.c->globals.cc

From: Robert Collins <robertc@dont-contact.us>
Date: 16 Dec 2002 20:14:04 +1100

On Mon, 2002-12-16 at 07:46, Henrik Nordstrom wrote:
> On 16 Dec 2002, Robert Collins wrote:
>
> > The global functions should start with captial letters - ie
> > CurrentTimeC(). Also, I'm not clear *just be looking at them* what the C
> > and D stand for - choosing a slightly clearer name may help new
> > contributors.
>
> Suggestions are welcome. Picked by "C" for C time, "D" for double.

What about
CurrentUnixIntTime() ?
CurrentUnixDblTime() ?

> > Lastly, for C++ compiled files, it would make sense, to me, to return
> > 'const & foo' for the inlined functions, as that would prevent temporary
> > copies being made.
>
> Have considered this, but we then need a C++ backing file for -O0, which
> does not mix well with lib being C.

Well, lib doesn't have to stay C. We can always export C bindings for
any part of it needed by C programs. It was just simpler to leave it as
C during the inital all-in-one-step conversion.

Rob

Received on Mon Dec 16 2002 - 02:14:10 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:01 MST