|
Boost Users : |
Subject: Re: [Boost-users] [proto] extended expressions and assignment operator
From: Eric Niebler (eric_at_[hidden])
Date: 2009-08-24 14:35:51
Maurizio Vitale wrote:
> Hi Eric,
>
> I'm trying to have proto allow me to do things like:
>
> (a,b,c) = expr;
>
> where a, b, c are integers
Protofied integers, it seems.
> of different width
You mean, short, int, long?
> and they should be
> assigned the appropriate slice of expr.
What is expr, and what is a slice of expr?
> For instance:
>
> | variable | width | value |
> |----------+-------+-----------|
> | a | 2 | expr[6:7] |
> | b | 4 | expr[2:5] |
> | c | 2 | expr[0:1] |
I don't understand your syntax.
> width are compile-time constants and I need to keep them so (they'll be
> used to compute masks and shifts at compile time).
>
> First problem is that I do not know of a good way for doing this.
<snip>
I'm afraid you've lost me. I don't know what "this" is. :-( Care to try
again?
-- Eric Niebler BoostPro Computing http://www.boostpro.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net