On Thursday, 7 February 2019 at 07:33:50 UTC, Norm wrote:
Hi,
I'm trying to use Variant in a struct and want a default init
value like so:
---
struct S {
Variant v = Variant(10);
}
void main() {auto s = S();}
but when I try to build this I get the following error:
dmd2/linux/bin64/../../s
Hi,
I'm trying to use Variant in a struct and want a default init
value like so:
---
struct S {
Variant v = Variant(10);
}
void main() {auto s = S();}
but when I try to build this I get the following error:
dmd2/linux/bin64/../../src/phobos/std/variant.d(661): Error:
memcpy cannot be inte
macOS 12, DMD 2.084.0 / LDC 1.14.0-beta1
I have a C API that exports some global variables, declared like
so:
.h file:
=
extern "C" {
#define PUBLIC_API __attribute__((visibility("default")))
struct __opaqueHandle; typedef __opaqueHandle* opaqueHandle_t;
PUBLIC_API extern const opaqueHandl
On Monday, 17 December 2018 at 21:59:59 UTC, JN wrote:
while working on my game engine project, I encountered a DMD
codegen bug. It occurs only when compiling in release mode,
debug works.
Old thread, but FWIW, such bugs can be easily and precisely
reduced with DustMite. In your test script,
On Thursday, 7 February 2019 at 00:10:50 UTC, Murilo wrote:
"information harvesting"
I mean Facebook as a whole, not your group specifically. FB is in
the business of selling to advertisers, and the users are the
product.
On Thursday, 7 February 2019 at 02:55:15 UTC, evilrat wrote:
You need C++ tools from Microsoft to debug D code, don't mind
the name, its debugger works for any (compatible formats)
native code.
Then add C++ Windows debug configuration and set your paths.
Done. You can debug now. (Though it is
On Wednesday, 6 February 2019 at 23:59:07 UTC, Charles wrote:
I don't use C++, and I do use Windows, which has me wondering
if I'm just missing some normal/exepcted configuration.
My most recent attempt I tried to get Native Debug to make VS
Code debugging stop on the first line. Instead, it
On Wed, Feb 06, 2019 at 10:37:27PM +, JN via Digitalmars-d-learn wrote:
[...]
> I am not sure if it's a pointer bug. What worries me is that it breaks
> at the start of the program, but uncommenting code at the end of the
> program influences it. Unless there's some crazy reordering going on,
>
On Wednesday, 6 February 2019 at 04:36:12 UTC, DanielG wrote:
On Wednesday, 6 February 2019 at 01:04:43 UTC, Murilo wrote:
You should later joing the facebook group Programming in D.
The D community is small enough that it's unlikely anybody in
that Facebook group, isn't already using the new
Does anyone know of a video that shows setting up vscode (or
another editor with debugging support)? I always feel like I miss
a step when I decide to try D out again, and it never ends well.
I don't use C++, and I do use Windows, which has me wondering if
I'm just missing some normal/exepcted
On Wednesday, 6 February 2019 at 22:22:26 UTC, H. S. Teoh wrote:
Of course, I've no clue whether this is the cause of your
problems -- it's just one of many possibilities. Pointer bugs
are nasty things to debug, regardless of whether or not they've
been abstracted away in nicer clothing. I st
On Wed, Feb 06, 2019 at 09:50:44PM +, JN via Digitalmars-d-learn wrote:
> On Tuesday, 18 December 2018 at 22:56:19 UTC, H. S. Teoh wrote:
> > Since no explicit slicing was done, there was no compiler error /
> > warning of any sort, and it wasn't obvious from the code what had
> > happened. By
On Tuesday, 18 December 2018 at 22:56:19 UTC, H. S. Teoh wrote:
Since no explicit slicing was done, there was no compiler error
/ warning of any sort, and it wasn't obvious from the code what
had happened. By the time doSomething() was called, it was
already long past the source of the problem
On Wed, Feb 06, 2019 at 05:53:05PM +, Enjoys Math via Digitalmars-d-learn
wrote:
> What is this phobos crap?
>
> I've tried renaming all my modules with an _ (underscore) in case they
> were colliding with phobos.
>
> -- Build started: Project: BasicSimpleTypeTheoryApp, Configuration:
>
I tried re-installing DMD, and now for either 64-bit or x86 build
mode, I'm getting the Phobos linker error:
-- Build started: Project: BasicSimpleTypeTheoryApp,
Configuration: Debug x64 --
Building x64\Debug\BasicSimpleTypeTheoryApp.exe...
LINK : fatal error LNK1104: cannot open file
What is this phobos crap?
I've tried renaming all my modules with an _ (underscore) in case
they were colliding with phobos.
-- Build started: Project: BasicSimpleTypeTheoryApp,
Configuration: Debug Win32 --
Building Win32\Debug\BasicSimpleTypeTheoryApp.exe...
LINK : fatal error LNK1
On Wednesday, 6 February 2019 at 17:53:05 UTC, Enjoys Math wrote:
What is this phobos crap?
I've tried renaming all my modules with an _ (underscore) in
case they were colliding with phobos.
-- Build started: Project: BasicSimpleTypeTheoryApp,
Configuration: Debug Win32 --
Building
On Wednesday, 6 February 2019 at 14:31:59 UTC, Paul Backus wrote:
On Wednesday, 6 February 2019 at 10:07:06 UTC, Sudhi wrote:
Hi,
I have been using dproto to work with protocol buffers. I have
below proto structure
message Person
{
required string name = 1;
required string id = 2;
On Wednesday, 6 February 2019 at 10:07:06 UTC, Sudhi wrote:
Hi,
I have been using dproto to work with protocol buffers. I have
below proto structure
message Person
{
required string name = 1;
required string id = 2;
repeated string emailId = 3;
}
Where a person can have multiple
On Tuesday, 5 February 2019 at 20:39:50 UTC, Murilo wrote:
On Tuesday, 5 February 2019 at 19:46:32 UTC, H. S. Teoh wrote:
Thank you very much, I will try what you just explained. And
yes I would really appreciate it if people would make single
file libraries that I can just import as if it we
On Monday, 4 February 2019 at 19:23:26 UTC, Jacob Carlborg wrote:
You can call it with or without parentheses. It applies to all
functions that don't take any arguments or functions taking a
single argument and are called using UFCS [1].
[1] https://dlang.org/spec/function.html#pseudo-member
On Tuesday, 5 February 2019 at 09:41:06 UTC, Antonio Corbi wrote:
It could be so, I'm not using gnome so I can't say.
By the way, I'm using gtk3 3.24.5.
Yeah, I updated from 3.22 to 3.24, but it made no difference on
Windows 10. Still that delay with submenus.
I'd rather be running FreeBSD,
On Wednesday, 6 February 2019 at 05:17:51 UTC, Heromyth wrote:
On Wednesday, 6 February 2019 at 05:03:26 UTC, Sudhi wrote:
Hi All,
I am trying to use an Async task which would run at every
interval of time.
I could not find any example for this. Can some one enlighten
me on this. I did not
Hi,
I have been using dproto to work with protocol buffers. I have
below proto structure
message Person
{
required string name = 1;
required string id = 2;
repeated string emailId = 3;
}
Where a person can have multiple email ids.
I could add the email id to person using below co
On Wednesday, 6 February 2019 at 07:38:04 UTC, ezneh wrote:
Thanks for the trick, I'll try it and see how it goes.
Since the class have nothing in them, I just made some "alias
otherclass = baseclass" statements and it seems it is working
(at least it's compiling, have to really test that too
25 matches
Mail list logo