On 01/30/2017 11:58 AM, Profile Anaysis wrote:
Also, if one tries to create a global generator an error about PAGESIZE
not being a compile time value is given.
That means you can't initialize it statically, because PAGESIZE is not
known statically. But you can have a global (module scope,
On 01/30/2017 11:58 AM, Profile Anaysis wrote:
the code from https://dlang.org/library/std/concurrency/generator.html
gives a seg fault at the end.
import std.concurrency;
import std.stdio;
void main()
{
auto tid = spawn(
{
while (true)
{
the code from
https://dlang.org/library/std/concurrency/generator.html
gives a seg fault at the end.
import std.concurrency;
import std.stdio;
void main()
{
auto tid = spawn(
{
while (true)
{
writeln(receiveOnly!int());
}
});
auto r = new