simple question about function call syntax

2014-08-18 Thread Nikolay via Digitalmars-d-learn
I found this code sample in vibe: void connect(NetworkAddress addr) { enforce(.connect(m_ctx.socketfd, addr.sockAddr, addr.sockAddrLen) == 0, Failed to connect UDP socket.~to!string(getLastSocketError())); } What does mean .connect? Where I can find description of this

Re: simple question about function call syntax

2014-08-18 Thread Dominikus Dittes Scherkl via Digitalmars-d-learn
On Monday, 18 August 2014 at 16:30:13 UTC, Nikolay wrote: I found this code sample in vibe: void connect(NetworkAddress addr) { enforce(.connect(m_ctx.socketfd, addr.sockAddr, addr.sockAddrLen) == 0, Failed to connect UDP socket.~to!string(getLastSocketError())); } What

Re: simple question about function call syntax

2014-08-18 Thread ketmar via Digitalmars-d-learn
On Mon, 18 Aug 2014 16:30:12 + Nikolay via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: What does mean .connect? Where I can find description of this syntax (dot + function name)? right here: http://dlang.org/expression.html#PrimaryExpression language documentation rulez!

Re: simple question about function call syntax

2014-08-18 Thread Nikolay via Digitalmars-d-learn
right here: http://dlang.org/expression.html#PrimaryExpression language documentation rulez! ;-) Yes I found it. Correct link: Module Scope Operator http://dlang.org/module.html

Re: simple question about function call syntax

2014-08-18 Thread ketmar via Digitalmars-d-learn
On Tue, 19 Aug 2014 03:36:26 + Nikolay via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: right here: http://dlang.org/expression.html#PrimaryExpression language documentation rulez! ;-) Yes I found it. Correct link: Module Scope Operator http://dlang.org/module.html