Re: What's new in lcc-win
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Mon, 24 Mar 2008 16:55:39 +0000
jacob navia <jacob@xxxxxxxxxx> writes:
Ben Bacarisse wrote:<snip>
You also seem to have fixed the missing definition of _Complex_I and
the types of creal and cimag.
Yes, and now, (as a side effect) you can't use
creal(z) = 5;
You could always make casts produce modifiable lvalues -- as an
extension.
In the long-run, don't you want to have complex numbers
whose components are the smallest allowable size? I.e. don't you want
float _Complex to use two floats?
The official syntax is
z = 5 + cimag(z); // Assigns 5 to real part
z = creal(z) + 5*I; // Assigns to the imaginary part.
I remember doing quote a bit of scientific programming a long time
ago, and modifying the parts of complex number was not a common thing
to do. I may be wrong about that, but I would not worry about it.
--
Ben.
.
- Follow-Ups:
- Re: What's new in lcc-win
- From: jacob navia
- Re: What's new in lcc-win
- References:
- What's new in lcc-win
- From: jacob navia
- Re: What's new in lcc-win
- From: Ben Bacarisse
- Re: What's new in lcc-win
- From: jacob navia
- What's new in lcc-win
- Prev by Date: Re: What's new in lcc-win
- Next by Date: Re: What's new in lcc-win
- Previous by thread: Re: What's new in lcc-win
- Next by thread: Re: What's new in lcc-win
- Index(es):
Relevant Pages
|
|