On Monday, 22 April 2019 at 23:53:59 UTC, Ali Çehreli wrote:
On 04/22/2019 03:29 PM, Andre Pany wrote:
> I wonder wheter std.stdio is missing a readfln function.
Which executes
> readln, strips the #10#13 characters and then executes
formattedRead.
> Does that make sense to you?
Makes sense but
Le 23/04/2019 à 00:23, Adam D. Ruppe via Digitalmars-d-learn a écrit :
(my personal feeling though is readf is just a pile of confusion and should
almost never be used. I hate that it is introduced so early in most tutorials...
I'd rather have it in an appendix for special cases only rather than
On 04/22/2019 03:29 PM, Andre Pany wrote:
> I wonder wheter std.stdio is missing a readfln function. Which executes
> readln, strips the #10#13 characters and then executes formattedRead.
> Does that make sense to you?
Makes sense but what we are missing is standard streaming (like C++'s
overlo
On Monday, 22 April 2019 at 22:08:33 UTC, Ali Çehreli wrote:
On 04/22/2019 01:45 PM, Andre Pany wrote:
Hi,
following the example from
http://ddili.org/ders/d.en/input.html,
I try to read a value from console on windows (powershell and
dos console).
The code from the example does not work,
w
On Monday, 22 April 2019 at 20:45:54 UTC, Andre Pany wrote:
The code from the example does not work,
writeln is never executed.
For "%s" with a string argument, it reads ALL of stdin into that
string. This means you need to send an end-of-file indicator to
the program. ctrl+z on Windows does
On 04/22/2019 01:45 PM, Andre Pany wrote:
Hi,
following the example from http://ddili.org/ders/d.en/input.html,
I try to read a value from console on windows (powershell and dos console).
The code from the example does not work,
writeln is never executed.
import std;
void main()
{
while(
Hi,
following the example from http://ddili.org/ders/d.en/input.html,
I try to read a value from console on windows (powershell and dos
console).
The code from the example does not work,
writeln is never executed.
import std;
void main()
{
while(true)
{
string