Hello everyone,
I have the following code snippet:
import core.time:TickDuration;
import std.datetime: StopWatch, AutoStart;
void main()
{
auto wait = TickDuration.from!`msecs`(1000);
auto timer = StopWatch(AutoStart.yes);
while (timer.peek wait) // Okay.
{ }
while
On Tuesday, February 28, 2012 19:15:01 Matej Nanut wrote:
Hello everyone,
I have the following code snippet:
import core.time: TickDuration;
import std.datetime: StopWatch, AutoStart;
void main()
{
auto wait = TickDuration.from!`msecs`(1000);
auto timer =
Also you can force property calls in your code if you compile with
-property. Property notation has not been enforced so far, but might
be in the future afaik.
So I can call any (void) method without parenthesis without -property?
I guess I'll just add -property to all my programs from now on. But
why isn't .peek() a property? In std.container, for example, the
BinaryHeap has a .front property (even though it isn't declared as
such on dlang.org, but the
On Tuesday, February 28, 2012 20:14:14 Matej Nanut wrote:
So I can call any (void) method without parenthesis without -property?
I guess I'll just add -property to all my programs from now on. But
why isn't .peek() a property? In std.container, for example, the
BinaryHeap has a .front property