digitalmars.D.learn - Comma operator overloading
- Jay Norwood (10/10) Nov 17 2013 I'm reading a SystemC lecture which describes use of operator
- =?UTF-8?B?U2ltZW4gS2rDpnLDpXM=?= (4/13) Nov 17 2013 That is correct.
I'm reading a SystemC lecture which describes use of operator overloading of comma in their syntax to support concatenation. So, for example, they support the data operations below sc_uint<4> a, b, d, e; sc_unit<8> c; c = (a, b); (d, e) = c; As I understand it, SystemC is C++. I didn't find commas among the overloadable D operators. Is that correct?
Nov 17 2013
On 17.11.2013 21:29, Jay Norwood wrote:I'm reading a SystemC lecture which describes use of operator overloading of comma in their syntax to support concatenation. So, for example, they support the data operations below sc_uint<4> a, b, d, e; sc_unit<8> c; c = (a, b); (d, e) = c; As I understand it, SystemC is C++. I didn't find commas among the overloadable D operators. Is that correct?That is correct. -- Simen
Nov 17 2013