February 12, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timothee Cour | On Wednesday, 12 February 2014 at 21:07:27 UTC, Timothee Cour
wrote:
> already added a bug report in github for that
Hmmm I should have checked the "issue list" first!
Thanks for the info,
Matheus.
|
February 12, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | On Wednesday, 12 February 2014 at 18:08:11 UTC, Martin Nowak wrote:
> For example it should be possible to call a function or inherit from a class that were defined earlier.
Dabble allows both of these things, if I understand your comment correctly.
|
February 13, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | 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/ Excellent, I've been waiting for this. Even better than I expected as it has a nice web interface. All of my initial bugs have already been reported. Once this project (or perhaps dabble) is more mature, something like http://tryhaskell.org/ or http://tryruby.org/ may be a good idea. |
February 13, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | 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/
It would be nice if in the online sandbox the window width could be changed.
|
February 13, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | 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/ http://i.imgur.com/LNYMNYw.png |
February 13, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tourist Attachments:
| very cool
On Thu, Feb 13, 2014 at 12:27 PM, Tourist <gravatar@gravatar.com> 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/
>>
>
> http://i.imgur.com/LNYMNYw.png
>
|
February 14, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | 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/
Very nice! thanks. I tried the following code but it print nothing:
auto twice = (int a) => 2*a;
twice(2);
What's wrong with that?
|
February 14, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Asman01 | On Friday, 14 February 2014 at 05:32:12 UTC, Asman01 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/
>
> Very nice! thanks. I tried the following code but it print nothing:
>
> auto twice = (int a) => 2*a;
> twice(2);
>
> What's wrong with that?
Drop the semicolon after twice(2)
|
February 14, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | On Friday, 14 February 2014 at 11:58:43 UTC, John Colvin wrote:
>> auto twice = (int a) => 2*a;
>> twice(2);
>>
>> What's wrong with that?
>
> Drop the semicolon after twice(2)
Yeah, with a semicolon it's a statement, so it doesn't have any result value to print.
Without the semicolon it's an expression.
|
February 14, 2014 Re: early alpha of D REPL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rory McGuire | On Thursday, 13 February 2014 at 20:18:39 UTC, Rory McGuire wrote:
> very cool
>
>
> On Thu, Feb 13, 2014 at 12:27 PM, Tourist <gravatar@gravatar.com> 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/
>>>
>>
>> http://i.imgur.com/LNYMNYw.png
Looks like you're being sarcastic.
What I meant is that sending comments twice disconnects the server. I can reproduce it every time. Looks like a bug to me.
|
Copyright © 1999-2021 by the D Language Foundation