Editable and runnable code sample on dlang.org by Damian Ziemba (nazriel)
Justin Whear
justin at economicmodeling.com
Thu Jul 5 09:57:23 PDT 2012
On Thu, 05 Jul 2012 09:51:50 -0700, H. S. Teoh wrote:
> On Thu, Jul 05, 2012 at 12:26:01PM -0400, Andrei Alexandrescu wrote:
>> Check this out: on http://dlang.org you can actually click in the code
>> example and edit it, then click "Run" and pronto, you see the output!
>>
>> Damian is actively working on the UI as I'm writing this. Feel free to
>> chime in with feedback!
> [...]
>
> Won't that be open to abuse? Like if somebody wrote a fork bomb and
> tried to run it...
>
> Unless the backend server has tight resource control over the code
> sample executor, of course
>
>
> T
It appears to at the very least strip out calls to shell(). I just tried
adding:
writeln(shell("whoami"));
and just got a blank line.
More information about the Digitalmars-d
mailing list