|
Boost : |
From: John Max Skaller (skaller_at_[hidden])
Date: 2001-05-28 17:16:52
joel de guzman wrote:
>
> If only there
> was a way in C++ to get the type of the rhs and pass it into
> the lhs, I wouldn't have needed rules.
I proposed this.
Felix supports it.
> There was a proposal in comp.std.c++ to reuse the auto
> keyword to do this. With this extension, we could do:
>
> auto rule = a | b >> c;
That sucks. Why should inference
be restricted to auto storage class?
This is the kind of thinking that has made C++ syntax
even more ugly than C has forced it to be.
> Does anyone have a better way of doing this?
dcl x = expr;
-- John (Max) Skaller, mailto:skaller_at_[hidden] 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 checkout Vyper http://Vyper.sourceforge.net download Interscript http://Interscript.sourceforge.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk