On 02/13/2016 10:38 PM, Beginner-8 wrote:
On Sunday, 14 February 2016 at 06:10:04 UTC, Beginner-8 wrote:
On Sunday, 14 February 2016 at 06:01:11 UTC, tcak wrote:
Unless you explicitly call "close" method of Socket object, its
descriptor will
stay allocated for your process/program.
Hmm, I am
(I went to make a patch to Phobos)
On Sat, 2016-02-13 at 18:58 +, Vladde Nordholm via Digitalmars-d-
learn wrote:
> Hello. I have this singleton,
>
> --
> class Singleton
> {
> private this() {}
> static __gshared typeof(this) instance = new this;
> }
> -
On Sunday, 14 February 2016 at 06:10:04 UTC, Beginner-8 wrote:
On Sunday, 14 February 2016 at 06:01:11 UTC, tcak wrote:
Unless you explicitly call "close" method of Socket object,
its descriptor will
stay allocated for your process/program.
Hmm, I am seen what Socket dtor contains close() to
On Sunday, 14 February 2016 at 06:01:11 UTC, tcak wrote:
Unless you explicitly call "close" method of Socket object, its
descriptor will
stay allocated for your process/program.
Hmm, I am seen what Socket dtor contains close() too:
https://github.com/D-Programming-Language/phobos/blob/master
On Sunday, 14 February 2016 at 04:13:12 UTC, Beginner-8 wrote:
Hi!
Anyone seen Socket constructor which uses already available
socket of socket_t type?
I am need to use already connected socket imported from C
library without closing them after using.
One of the constructors of class Socke
On Sunday, 14 February 2016 at 04:13:12 UTC, Beginner-8 wrote:
Anyone seen Socket constructor which uses already available
socket of socket_t type?
See the list on my unofficial docs here:
http://dpldocs.info/experimental-docs/std.socket.Socket.html
This one does it:
http://dpldocs.info/exp
Hi!
Anyone seen Socket constructor which uses already available
socket of socket_t type?
I am need to use already connected socket imported from C library
without closing them after using.
On Saturday, 13 February 2016 at 19:32:33 UTC, Ali Çehreli wrote:
David Simcha's DConf 2013 presentation has a singleton
implementation at 27:55:
https://www.youtube.com/watch?v=yMNMV9JlkcQ
Ali
Neat video! Watched the singleton section to end up watching the
rest of the video. Anything ev
On Saturday, 13 February 2016 at 00:41:35 UTC, tsbockman wrote:
On Friday, 12 February 2016 at 23:46:09 UTC, Kapps wrote:
You'll encounter this pretty often in Phobos I think. I really
don't think @nogc is ready, and tend to avoid it in my code.
Exceptions are a big reason for it, and lots of f
On 02/13/2016 10:58 AM, Vladde Nordholm wrote:
Hello. I have this singleton,
--
class Singleton
{
private this() {}
static __gshared typeof(this) instance = new this;
}
--
and I won
On Saturday, 13 February 2016 at 19:24:44 UTC, ishwar wrote:
I am stumped on need finding interval between two events in a
program execution in nanoseconds. Any sample code will be
appreciated (along with imports needed to make it work):
- time in nanoseconds-now
- do-some processing
- time in
I am stumped on need finding interval between two events in a
program execution in nanoseconds. Any sample code will be
appreciated (along with imports needed to make it work):
- time in nanoseconds-now
- do-some processing
- time in nano-second-now
Thanks
Hello. I have this singleton,
--
class Singleton
{
private this() {}
static __gshared typeof(this) instance = new this;
}
--
and I wonder if it has any weaknesses. Or is there a better
On Saturday, 13 February 2016 at 14:53:39 UTC, ZombineDev wrote:
On Saturday, 13 February 2016 at 10:22:36 UTC, Marc Schütz
wrote:
On Friday, 12 February 2016 at 21:56:09 UTC, Steven
Schveighoffer wrote:
That's odd. I think anonymous probably has the answer (they
are context pointers), but I'm
On Saturday, 13 February 2016 at 12:44:40 UTC, Tofu Ninja wrote:
Is the TypeInfo given by typeid() guaranteed to be the same for
a type regardless of where I call it? I guess my question is,
is the TypeInfo a valid way to dynamically check types?
I am implementing a message passing system for
On Saturday, 13 February 2016 at 11:28:40 UTC, tcak wrote:
Maybe I am missing, but I do not see any index file when html
files are generated by ddoc. Is there any way to generate index
file automatically, so, a tree like links will be listed all
created documentation files?
If the problem is
On Saturday, 13 February 2016 at 10:22:36 UTC, Marc Schütz wrote:
On Friday, 12 February 2016 at 21:56:09 UTC, Steven
Schveighoffer wrote:
That's odd. I think anonymous probably has the answer (they
are context pointers), but I'm also surprised they are null,
they shouldn't be.
In this exampl
Is the TypeInfo given by typeid() guaranteed to be the same for a
type regardless of where I call it? I guess my question is, is
the TypeInfo a valid way to dynamically check types?
I am implementing a message passing system for an
entity-component system, I was planning to use structs as
mes
Maybe I am missing, but I do not see any index file when html
files are generated by ddoc. Is there any way to generate index
file automatically, so, a tree like links will be listed all
created documentation files?
If the problem is about the possibility of having index.d and it
would be con
On Friday, 12 February 2016 at 21:56:09 UTC, Steven Schveighoffer
wrote:
That's odd. I think anonymous probably has the answer (they are
context pointers), but I'm also surprised they are null, they
shouldn't be.
In this example, `void foo()` doesn't access any outer variables,
so there's no
21 matches
Mail list logo