Why Phobos is cool
Ogi
ogion.art at gmail.com
Wed Jul 8 11:27:27 UTC 2020
On Wednesday, 8 July 2020 at 10:34:55 UTC, Dennis wrote:
> On Wednesday, 8 July 2020 at 10:15:17 UTC, Ogi wrote:
>> Maybe we should add an option to rdmd that compile and run a
>> string, importing std automatically? Writing one-liners would
>> be as easy as
>> rdmd -dscript 'writeln("hello, shell");'
>
> rdmd --eval 'writeln("hello, shell");'
>
> ```
> --eval=code evaluate code as in perl -e (multiple
> --eval allowed)
> --loop assume "foreach (line; stdin.byLine()) {
> ... }" for eval
> ```
Whoa! rdmd is cool, too.
More information about the Digitalmars-d
mailing list