On 7/17/14, 9:06 AM, John Colvin wrote:
On Thursday, 17 July 2014 at 15:58:05 UTC, Andrei Alexandrescu wrote:
I think an approach based on functions peek/poke is a lot more
promising. D programs must define sequences of std calls anyway,
otherwise even the simplest programs that use writeln("What's your
name?") followed by a readln() are incorrect. So in a way peek/poke
come for "free".

Could you expand on this "sequences of calls"? What exactly do you mean
by defining it?

For example if you run this C program:

printf("ur name: ");
fflush(stdout);
scanf("%s", &name);
printf("Hello, %s!", name);

it's guaranteed the order of calls is preserved.


Andrei

Reply via email to