early alpha of D REPL

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Feb 10 21:37:45 PST 2014


On 2/10/14, 9:01 PM, deadalnix wrote:
> On Tuesday, 11 February 2014 at 04:46:41 UTC, Martin Nowak wrote:
>> Barely running but already fun and a little useful.
>>
>> Example:
>>
>> D> import std.algorithm, std.array, std.file;
>> => std
>> D> auto name(T)(T t) {
>>  |     return t.name;
>>  | }
>> => name
>> D> dirEntries(".", SpanMode.depth).map!name.join(", ")
>> => ./drepl_sandbox
>> D>
>>
>> https://github.com/MartinNowak/drepl
>> http://drepl.dawg.eu/
>
> As I understand it, you are executing dmd in the background to repl.
> Simple and clever :D

But then how is it saving context?

Andrie


More information about the Digitalmars-d-announce mailing list