Re: Accessing __FILE__ and __LINE__ of caller in combination with varargs?

2016-04-16 Thread WebFreak001 via Digitalmars-d-learn
On Saturday, 16 April 2016 at 00:03:59 UTC, Jonathan M Davis wrote: Yes, you can do that, but do _not_ do that unless you really have no other choice. What you need to realize is that because the file and line number arguments will be unique for every call to this function, it will generate a

Using -J with dub

2016-04-16 Thread Bauss via Digitalmars-d-learn
Is there a way to achieve using -J through dub, preferable through dub.json I can't seem to find anything through the dub.json docs on how to pass regular dmd flags.

Re: Using -J with dub

2016-04-16 Thread Zekereth via Digitalmars-d-learn
On Saturday, 16 April 2016 at 20:57:10 UTC, Bauss wrote: Is there a way to achieve using -J through dub, preferable through dub.json I can't seem to find anything through the dub.json docs on how to pass regular dmd flags. For just -J option use stringImportPaths "". For other commands use

Re: Why does Reggae use mixins?

2016-04-16 Thread Atila Neves via Digitalmars-d-learn
On Saturday, 16 April 2016 at 13:04:24 UTC, Nordlöw wrote: On Friday, 15 April 2016 at 13:18:46 UTC, Nordlöw wrote: Why does the build system Reggae use mixins everywhere in the D examples? https://github.com/atilaneves/reggae Correction, it can do stuff either at CT or run-time as show

Which application is much suited and which is not.

2016-04-16 Thread newBeeee via Digitalmars-d-learn
Let's say you have decided to use D programming language. For what kind of applications would you choose D programming language and For what kind of applications you won't choose D programming.

Re: .opAssign disabled without @disable

2016-04-16 Thread Alex Parrill via Digitalmars-d-learn
On Saturday, 16 April 2016 at 11:48:56 UTC, denizzzka wrote: Hi! DMD and LDC2 complain about disabled opAssign, but I am not used @disable and depend package "gfm" also isn't uses @disable. ... Try removing the const from this line: debug private const bool isLeafNode = false; I suspect

Re: Which application is much suited and which is not.

2016-04-16 Thread Eugene Wissner via Digitalmars-d-learn
On Saturday, 16 April 2016 at 14:08:05 UTC, newB wrote: Let's say you have decided to use D programming language. For what kind of applications would you choose D programming language and For what kind of applications you won't choose D programming. I would use D for web programming and

Re: .opAssign disabled without @disable

2016-04-16 Thread denizzzka via Digitalmars-d-learn
On Saturday, 16 April 2016 at 15:15:18 UTC, Alex Parrill wrote: Try removing the const from this line: debug private const bool isLeafNode = false; I suspect that D is disabling whole-structure assignment since allowing it would mean that the constant `isLeafNode` could be changed. Tried

Re: Which application is much suited and which is not.

2016-04-16 Thread Bauss via Digitalmars-d-learn
On Saturday, 16 April 2016 at 14:08:05 UTC, newB wrote: Let's say you have decided to use D programming language. For what kind of applications would you choose D programming language and For what kind of applications you won't choose D programming. I use D for pretty much everything. I

Re: .opAssign disabled without @disable

2016-04-16 Thread denizzzka via Digitalmars-d-learn
On Saturday, 16 April 2016 at 11:48:56 UTC, denizzzka wrote: source/package.d(109,31): Error: function rtree.RAMNode!(Box!(int, 2), ubyte).RAMNode.opAssign is not callable because it is annotated with @disable source/package.d(110,26): Error: function rtree.RAMNode!(Box!(int, 2),

Re: Which application is much suited and which is not.

2016-04-16 Thread Adam D. Ruppe via Digitalmars-d-learn
I use D for everything unless I cannot by some exterior constraint.

Re: Using -J with dub

2016-04-16 Thread Bauss via Digitalmars-d-learn
On Saturday, 16 April 2016 at 23:46:58 UTC, Zekereth wrote: On Saturday, 16 April 2016 at 20:57:10 UTC, Bauss wrote: Is there a way to achieve using -J through dub, preferable through dub.json I can't seem to find anything through the dub.json docs on how to pass regular dmd flags. For

Re: Accessing __FILE__ and __LINE__ of caller in combination with varargs?

2016-04-16 Thread Simen Kjaeraas via Digitalmars-d-learn
On Saturday, 16 April 2016 at 00:03:59 UTC, Jonathan M Davis wrote: On Friday, April 15, 2016 20:52:42 WebFreak001 via Digitalmars-d-learn wrote: void assertf(string file = __FILE__, size_t line = __LINE__, Args...)(lazy bool condition, in string message, Args args) { Yes, you can do that,

Re: Why does Reggae use mixins?

2016-04-16 Thread Nordlöw via Digitalmars-d-learn
On Friday, 15 April 2016 at 13:18:46 UTC, Nordlöw wrote: Why does the build system Reggae use mixins everywhere in the D examples? https://github.com/atilaneves/reggae Correction, it can do stuff either at CT or run-time as show here:

Re: Dlang UI - making widget extend to the bounds of the window

2016-04-16 Thread stunaep via Digitalmars-d-learn
On Saturday, 16 April 2016 at 08:20:33 UTC, stunaep wrote: On Friday, 15 April 2016 at 10:33:35 UTC, Vadim Lopatin wrote: [...] I am doing that. I think it has to do with my high dpi because I'm using a 4k monitor. If I use Modal window flag: [...] http://i.imgur.com/FJgPq8U.png If I

.opAssign disabled without @disable

2016-04-16 Thread denizzzka via Digitalmars-d-learn
Hi! DMD and LDC2 complain about disabled opAssign, but I am not used @disable and depend package "gfm" also isn't uses @disable. Steps to reproduce: git clone https://github.com/denizzzka/r-tree.git cd r-tree git checkout 803eed22 dub test Fetching gfm 6.0.0 (getting selected version)...

Re: Dlang UI - making widget extend to the bounds of the window

2016-04-16 Thread stunaep via Digitalmars-d-learn
On Friday, 15 April 2016 at 10:33:35 UTC, Vadim Lopatin wrote: On Friday, 15 April 2016 at 00:58:58 UTC, stunaep wrote: I'm trying to make a gui program with dlangui, but no matter what I do, I cannot get widgets to fill the whole window. The window is resizable so I cannot just set the widths

Re: Dlang UI - making widget extend to the bounds of the window

2016-04-16 Thread stunaep via Digitalmars-d-learn
And no matter what window size I put when using Modal or Fullscreen, it always shows that same sized window