Thanks. I suspected it but i wanted a formal reference. the
logic, though little bit cleared by you is quite obvious. But
don't waste time, if you can not tell from a scratch that this
is clause x.y.z of the Standard, sorry, Book.
On Sunday, 22 September 2013 at 19:56:36 UTC, Jonathan M Dav
I would be curious to see why you believe them to be the same.
Cause i'm a C++ programmer and there is no such thing as module
and module initializer, in fact object file initialization
consist of initialization of all its static variables somewhen
before the first call of a function in tha
On Sunday, September 22, 2013 13:52:54 Ruslan Mullakhmetov wrote:
> But now i need to sort out what the difference between
> // global scope
>
> int a = 10;
That directly initializes the variable at compile time, meaning that whatever
is used to initialize the variable must be callable at compil
22-Sep-2013 15:52, Ruslan Mullakhmetov пишет:
I found where the problem is.
I used a system call (external C function) in class ctor. then I
declared global variable of this class and INITIALZIED that variable
inplace. If i move initalization in module static this() everything
compiles.
the co
I found where the problem is.
I used a system call (external C function) in class ctor. then I
declared global variable of this class and INITIALZIED that
variable inplace. If i move initalization in module static this()
everything compiles.
the code is:
incorrect version:
http://dpaste.co
Didn't catch. How can I use it at runtime? I can not link to
actually C function?
On Saturday, 21 September 2013 at 19:40:48 UTC, Jonathan M Davis
wrote:
On Saturday, September 21, 2013 20:30:00 Ruslan Mullakhmetov
wrote:
i use pipe() syscall from my program. when i compile it I got
the
fo
On Saturday, September 21, 2013 20:30:00 Ruslan Mullakhmetov wrote:
> i use pipe() syscall from my program. when i compile it I got the
> following msg:
>
> Error: pipe cannot be interpreted at compile time, because it has
> no available source code
>
> how can i fix it?
>
> dmd 2.063.2, Mac OS
i use pipe() syscall from my program. when i compile it I got the
following msg:
Error: pipe cannot be interpreted at compile time, because it has
no available source code
how can i fix it?
dmd 2.063.2, Mac OS X