I guess I see why now you did what you did! ;)
.LIB pagesize exceeds 512
https://issues.dlang.org/show_bug.cgi?id=15418
Wanna take bets on how many *years* this takes to get fixed?!?
On 08/20/2017 12:27 PM, WhatMeWorry wrote:
> // Mixins are for mixing in generated code into the source code.
> // The mixed in code may be generated as a template instance
> // or a string.
Yes, it means that the string must be legal D code.
> mixin(`writeln(` ~ `Hello` ~
On Sunday, 20 August 2017 at 12:46:59 UTC, Nicholas Wilson wrote:
Did you try changing the `: "+"` constraints to `if`
constraints?
Yes. Yields the same result as this.
Documentation for std.range.put
(https://dlang.org/phobos/std_range_primitives.html#.put) has the
intriguing line:
put should not be used "UFCS-style", e.g. r.put(e). Doing this
may call R.put directly, by-passing any transformation feature
provided by Range.put. put(r, e) is prefered.
On Sunday, 20 August 2017 at 15:49:09 UTC, seany wrote:
However, i cant find anything on google to tell me how to
estimate system resource using D. for C++ and windowes, i could
find some API-s
Can e do this in D?
You can just use those C APIs. I believe the GC does, unless I'm
reading it
Hi
I have a system that has to deal with 30+GB files. They can't be
loaded to the amount of memory I have.
So my idea was to create a way to estimate available system RAM,
and read a chunk from file which is 1/10 of size of available
RAM, and process it as far as i can. If the read chunk is
I've modified the build script:
changed 2 things: 1. Builds for all archs. 2. Replaced the
specialized x86 build with the generic used for 64-bit. You were
building for each individual directory for some reason, I guess
for more granularity, but it produced a different result than the
64
It's stuff like this which makes me very frustrated. Or depressed
because it demonstrates just how poor a programmer I am:
string printStatement(string message) {
return `writeln("` ~ message ~ `");`;
}
void main()
{
// Mixins are for mixing in generated code into the source
code.
In 64 bit builds it works with both LDC and DMD but in 32 bit LDC
version crashes and DMD release version crashes. Using LDC debug
build I managed to find that it crashes after executing ret
instruction from bindGLFunc in glloader. If someone wants to try
it you can do it with this project:
On 20-08-17 20:41, Johnson Jones wrote:
I guess I see why now you did what you did! ;)
.LIB pagesize exceeds 512
https://issues.dlang.org/show_bug.cgi?id=15418
Wanna take bets on how many *years* this takes to get fixed?!?
That one happens when GtkD is build with debug symbols.
The main
I'm playing around with std.format and I'm trying to figure out
if there is any way to identify what "%s" should expand to.
So for instance:
int x = 1;
auto result = x.format!"%s";
I would know that result="1". I could run "1" through
unformatValue and get back 1. I'm looking to see if there
On Sunday, 20 August 2017 at 18:08:27 UTC, Jon Degenhardt wrote:
Documentation for std.range.put
(https://dlang.org/phobos/std_range_primitives.html#.put) has
the intriguing line:
put should not be used "UFCS-style", e.g. r.put(e). Doing this
may call R.put directly, by-passing any
cannot access frame of function
I declared a helper function outside a lambda that is passed to C.
The semantics are the same inside of the function as they are
outside as far as code goes.
How can I declare a function that essentially works inside the
lambda also without having to do any
On Monday, 21 August 2017 at 02:17:57 UTC, crimaniak wrote:
...
shared A a;
...
Sorry, accidental delete, read this as shared A a = new
shared(A);
On Sunday, 20 August 2017 at 19:29:55 UTC, Igor wrote:
In 64 bit builds it works with both LDC and DMD but in 32 bit
LDC version crashes and DMD release version crashes. Using LDC
debug build I managed to find that it crashes after executing
ret instruction from bindGLFunc in glloader. If
On Sunday, 20 August 2017 at 20:13:17 UTC, Mike Wey wrote:
On 20-08-17 20:41, Johnson Jones wrote:
I guess I see why now you did what you did! ;)
.LIB pagesize exceeds 512
https://issues.dlang.org/show_bug.cgi?id=15418
Wanna take bets on how many *years* this takes to get fixed?!?
That one
On Sunday, 20 August 2017 at 19:27:43 UTC, WhatMeWorry wrote:
It's stuff like this which makes me very frustrated. Or
depressed because it demonstrates just how poor a programmer I
am:
string printStatement(string message) {
return `writeln("` ~ message ~ `");`;
}
void main()
{
//
On Thursday, 17 August 2017 at 13:09:29 UTC, Kagamin wrote:
On Wednesday, 16 August 2017 at 23:15:10 UTC, crimaniak wrote:
I wonder if it possible and usable to make some template to
support this pattern, where we give mutex(es), shared
object(s) and delegate to operate with objects as
Hey Mike, I bet you can answer this!
I'd like to extend a widget to add some functionality.
class MyBox : Box
{
protected GtkBox* gtkBox;
import std.typecons;
_gtk.Box Wrapped;
mixin Proxy!Wrapped;
public this(Box b)
{
On Monday, 14 August 2017 at 03:59:48 UTC, Jonathan M Davis wrote:
And no, this isn't ideal, but the only semi-decent solution
that's been proposed that safely casts away shared for you is
synchronized classes, which Andrei describes in TDPL but have
never been implemented.
After reading
On Saturday, 19 August 2017 at 10:16:18 UTC, Balagopal Komarath
wrote:
Let us say I want to automatically define subtraction given
that addition and negation are defined. I tried the following
using mixin templates...
I assume there is no way to do this?
On Saturday, 19 August 2017 at 10:16:18 UTC, Balagopal Komarath
wrote:
Let us say I want to automatically define subtraction given
that addition and negation are defined. I tried the following
using mixin templates. If I simply mixin the template using
"mixin sub;", then it gives the error
On Saturday, 19 August 2017 at 18:33:37 UTC, WhatMeWorry wrote:
On Friday, 18 August 2017 at 20:39:38 UTC, angel wrote:
On Friday, 18 August 2017 at 02:38:15 UTC, WhatMeForget wrote:
[...]
This actually appears correct ...
The 1-st example:
Each call to makeCalculator() increments a static
23 matches
Mail list logo