Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-02-01 23:00:10

Jonathan Turkanis wrote:
> Matthew Vogt wrote:
>>Anyhow, my problem with the macro-based IDL is that it obscures the
>>function signatures so badly, partly by separating the components so I
>>don't recognise them as a signature, and partly by encasing them in a
>>dense text block.
>>I think that this:
>> BOOST_IDL_CONST_FN2(print, void, ostream&, int)
>>is readability-wise so far away from:
>>struct Interface
>> void print(ostream&, int) const;
>>that it is an enormous hurdle for BIL to overcome.
> I'm sympathetic to this point of view. The reason it doesn't seem so bad to me
> is that only a relatively small part of coding with BIL is actually defining
> interfaces; the code which uses the interfaces is just ordinary C++.
> Do you have any suggestions for improving the macro syntax? For instance, do you
> like David Abrahams's suggested syntax better:
> Interface,
> ((int)(print)(ostream&)(int))
> );
> ?
> (I'm not sure where to stick 'const')

Or the one I use for my project...

                NAME(Type VALUE(0x003))

(and many more.. documentation comments and whitespace elided)

-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ - grafik/ - 102708583/icq

Boost list run by bdawes at, gregod at, cpdaniel at, john at