Why Phobos is cool
Dennis
dkorpel at gmail.com
Wed Jul 8 10:34:55 UTC 2020
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
```
More information about the Digitalmars-d
mailing list