On Friday, 28 August 2015 at 23:03:16 UTC, Jonathan M Davis wrote:
I _really_ wish that Microsoft would just use the TZ database
like everyone else...
- Jonathan M Davis
Starting with Windows 8.1, it does, but only in Windows Runtime
(so called modern/store apps).
On Friday, August 28, 2015 18:04:16 Adam D. Ruppe via Digitalmars-d-learn wrote:
> On Friday, 28 August 2015 at 17:59:06 UTC, WhatMeWorry wrote:
> > Stupid question. If it always returns an empty string, why is
> > it even there?
>
> It can return meaningful information in other subclasses; it is a
On Friday, 28 August 2015 at 19:36:37 UTC, Jacob Carlborg wrote:
On 2015-08-28 17:41, rumbu wrote:
I don't know about Objective-C, but:
- for native D interfaces __traits(getVirtualIndex,
NativeInterface.firstFunction) == 1 since the first entry in
vtbl is the
contained object
- for C++ inte
On 2015-08-28 16:31, Adam D. Ruppe wrote:
Not fully, no, but you might be able to reflect into the methods and see
what kind of linkage they have.
http://dlang.org/phobos/std_traits.html#functionLinkage
That might work.
However, you can't do anything with an interface that isn't in there
an
On 2015-08-28 17:41, rumbu wrote:
I don't know about Objective-C, but:
- for native D interfaces __traits(getVirtualIndex,
NativeInterface.firstFunction) == 1 since the first entry in vtbl is the
contained object
- for C++ interfaces __traits(getVirtualIndex,
CPPInterface.firstFunction) == 0
-
On Friday, 28 August 2015 at 18:46:23 UTC, Oleg wrote:
I found solution. I call length instead of reserve. It calls
ensureInitialized and everything works fine. By default, Array
won't initialize store.
Oh, reserve calls it too. My mistake.
I found the problem, that's because I passed an empt
On Friday, 28 August 2015 at 18:40:33 UTC, John Colvin wrote:
On Friday, 28 August 2015 at 18:31:00 UTC, Oleg wrote:
On Friday, 28 August 2015 at 18:21:04 UTC, John Colvin wrote:
On Friday, 28 August 2015 at 17:45:21 UTC, Oleg wrote:
Hello!
Is it possible to get pointer to a data in
std.conta
On Friday, 28 August 2015 at 18:31:00 UTC, Oleg wrote:
On Friday, 28 August 2015 at 18:21:04 UTC, John Colvin wrote:
On Friday, 28 August 2015 at 17:45:21 UTC, Oleg wrote:
Hello!
Is it possible to get pointer to a data in
std.container.Array like .ptr from an array? I need to pass a
pointer t
On Friday, 28 August 2015 at 18:21:04 UTC, John Colvin wrote:
On Friday, 28 August 2015 at 17:45:21 UTC, Oleg wrote:
Hello!
Is it possible to get pointer to a data in std.container.Array
like .ptr from an array? I need to pass a pointer to some C
function (from DerelictGL3 binding) and avoid G
On Friday, 28 August 2015 at 17:45:21 UTC, Oleg wrote:
Hello!
Is it possible to get pointer to a data in std.container.Array
like .ptr from an array? I need to pass a pointer to some C
function (from DerelictGL3 binding) and avoid GC allocation.
Thank you!
I'm pretty sure you can just take t
On Friday, 28 August 2015 at 17:59:06 UTC, WhatMeWorry wrote:
Stupid question. If it always returns an empty string, why is
it even there?
It can return meaningful information in other subclasses; it is a
method from the interface and is just blank in the LocalTime
class.
If you construct o
On Friday, 28 August 2015 at 14:18:24 UTC, Adam D. Ruppe wrote:
On Friday, 28 August 2015 at 14:07:37 UTC, wobbles wrote:
However, it just returns an empty string.
from the doc:
Note that this always returns the empty string. This is because
time zones cannot be uniquely identified by the at
Hello!
Is it possible to get pointer to a data in std.container.Array
like .ptr from an array? I need to pass a pointer to some C
function (from DerelictGL3 binding) and avoid GC allocation.
Thank you!
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation ?
On Friday, 28 August 2015 at 06:19:55 UTC, Jacob Carlborg wrote:
On 2015-08-26 20:59, Adam D. Ruppe wrote:
Yes, exactly. COM and C++ things won't necessarily have a D
TypeInfo
available and since interfaces can be them, it can't be sure.
What I do there is to just cast the interface to Object
On Friday, 28 August 2015 at 06:19:55 UTC, Jacob Carlborg wrote:
Is it possible to detect at compile time if an interface is not
a native D interface?
Not fully, no, but you might be able to reflect into the methods
and see what kind of linkage they have.
http://dlang.org/phobos/std_traits.h
On 2015-08-22 21:14, nims wrote:
I think interfaces are very powerful and I heavily use them. The only
problem I have with them is that serializing/deserializing them to XML
or JSON doesn't seem to work. So far I got to try Orange and
painlessjson. Using Orange all I got was a lot of compiler err
On Friday, 28 August 2015 at 14:07:37 UTC, wobbles wrote:
However, it just returns an empty string.
from the doc:
Note that this always returns the empty string. This is because
time zones cannot be uniquely identified by the attributes given
by the OS (such as the stdName and dstName), and
From the docs in std.datetime, I figured I could write:
Clock.currTime.timezone().name()
to get the timezone this system is in. However, it just returns
an empty string.
Anyone know how to get the timezone of the machine easily?
Thanks!
19 matches
Mail list logo