www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Compiler or Interpreter or Hybrid

reply newBeeee <devast001 gmail.com> writes:
How is D  implemented? (Compiler, Interpreter and Hybrid). Can 
you please explain why?
Apr 20 2016
parent thedeemon <dlang thedeemon.com> writes:
On Thursday, 21 April 2016 at 02:06:00 UTC, newBeeee wrote:
 How is D  implemented? (Compiler, Interpreter and Hybrid). Can 
 you please explain why?
Generally D is a compiled language: you give the compiler some source code and it produces executable binary with native machine code. Then you can distribute and run this binary without having to have any source code. However inside the compiler there is also an interpreter for most of D, it's used during the compilation to perform some compile-time computations and decisions, including ability to generate more D code that gets further interpreted or compiled.
Apr 20 2016