"Compiler as a service" in C# 4.0

Tim Matthews tim.matthews7 at gmail.com
Wed Jan 6 00:59:35 PST 2010


On Tue, 05 Jan 2010 21:00:13 -0600
Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:

> Jussi Jumppanen wrote:
> > Nick Sabalausky Wrote:
> > 
> >> I thought C# compiling was already part of the .NET library...? 
> > 
> > It is.
> > 
> > Class: CSharpCodeProvider
> > Namespace:  Microsoft.CSharp
> > Assembly:  System (in System.dll)
> > 
> > Provides access to instances of the C# code generator and code
> > compiler.
> > 
> 
> The REPL in Hejlsberg's demo requires a bit more than what 
> CSharpCodeProvider offers. Instead of compiling an entire file, the
> loop needs to compile a code snippet and save the resulting
> environment for further evaluations.
> 
> The changes in the compiler aren't huge, and the effect is quite nice.
> 
> 
> Andrei


This is an old vid but IIRC Miguel created a reply
vid explaining how Mono had the ability to do REPLs for a long time.



More information about the Digitalmars-d mailing list