C tips (again)

Walter Bright newshound1 at digitalmars.com
Fri May 1 16:21:59 PDT 2009


bearophile wrote:
> Walter Bright Wrote:
>> C has reflection?<
> 
> Yes, of course, if you implement it. C has OOP too if you implement
> all that machinery. C is quite efficient, so it gives you the power
> to implement almost everything

Why couldn't you do the exact same thing in D?



>> Why does it have to be written in C?<
> 
> CPython is written in C (and a bit of Python for some libs). I'd like
> to add a module to the Pythonh 2.7 standard lib, and to be efficient
> it can't be written in Python. So I have to use C. D isn't allowed in
> the CPython codebase.

So it's a political rather than technical requirement. That I can 
understand <g>.




More information about the Digitalmars-d mailing list