monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] [PATCH] New typesafe VA_ARGS replacement for databa


From: Nathaniel Smith
Subject: Re: [Monotone-devel] [PATCH] New typesafe VA_ARGS replacement for database with operator % style
Date: Tue, 24 Jan 2006 00:13:58 -0800
User-agent: Mutt/1.5.9i

On Tue, Jan 24, 2006 at 03:04:48AM +0100, Vinzenz 'evilissimo' Feenstra wrote:
> How promised here is the operator% style VA_ARGS replacement 
> implementation diff.

Okay, I've applied this to mainline, with some simple cleanups.

Christof, I'm sorry -- this is probably going to cause a bunch of
annoying conflicts for the .binary branch :-/.  Probably it should
have just been done on that branch, but we've gone round and round on
it so many times that I decided it was time to just get something
working and move forward.  I was going to try and merge it over, but I
ran out of time today; I might try tomorrow if you haven't gotten to
it first.

It should make the actual code on .binary much nicer though, I think?
The new API is like:
  execute(query("DELETE FROM my_table WHERE attr = ?") % blob(foo));

The blob() call is required -- you can say either text() or blob(),
but you must say one of them.  Yay compiler-checked explicitness.

-- Nathaniel

-- 
So let us espouse a less contested notion of truth and falsehood, even
if it is philosophically debatable (if we listen to philosophers, we
must debate everything, and there would be no end to the discussion).
  -- Serendipities, Umberto Eco




reply via email to

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