is eC alot like D?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 12 04:02:11 PDT 2015


On Wed, 11 Mar 2015 19:26:13 -0700, Parke via Digitalmars-d-learn wrote:

>> On Wed, 11 Mar 2015 06:22:32 +0000, sclytrack wrote:
>>> - You can include C library headers directly in your .ec code, without
>>> any special keyword (like extern "C" in C++)
> 
> On Wed, Mar 11, 2015 at 1:59 AM, ketmar via Digitalmars-d-learn
> <digitalmars-d-learn at puremagic.com> wrote:
>> either i missed something, misunderstood what he means or he is simply
>> wrong. i remember that there is no CPP macro processor in eC, so...
>> oops.
>> why my C header is not working?!
> 
> Maybe the eC compiler invokes a C compiler to do the preprocessing.

and then we have things like `static inline` functions and many other 
quirks. ah, and alot of standard C headers included, which are platform-
dependent, by the way. so the only way to make this work is to have full-
featured native C compiler inside.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150312/0e609509/attachment.sig>


More information about the Digitalmars-d-learn mailing list