Re: Support of -run and source code from stdin

2020-05-28 Thread Andre Pany via D.gnu
On Thursday, 28 May 2020 at 04:58:26 UTC, Iain Buclaw wrote: On Wednesday, 27 May 2020 at 21:40:38 UTC, Andre Pany wrote: Hi, Dmd and ldc supports running source code from stdin: ``` echo 'void main(){}' | dmd -run - ``` It seems GDC does not support argument -run and I do not know I see no

Re: Support of -run and source code from stdin

2020-05-27 Thread Iain Buclaw via D.gnu
On Wednesday, 27 May 2020 at 21:40:38 UTC, Andre Pany wrote: Hi, Dmd and ldc supports running source code from stdin: ``` echo 'void main(){}' | dmd -run - ``` It seems GDC does not support argument -run and I do not know I see no obvious use for having something like -run in the driver. Too

Support of -run and source code from stdin

2020-05-27 Thread Andre Pany via D.gnu
Hi, Dmd and ldc supports running source code from stdin: ``` echo 'void main(){}' | dmd -run - ``` It seems GDC does not support argument -run and I do not know wheter it supports reading source code from stdin? Could this 2 featured be added to gdc? This would solve the probe file issue ment