On Friday, 1 January 2016 at 15:06:53 UTC, bachmeier wrote:
I've battled with a few times, not having any idea what was
going on. I now almost automatically use strip when it's not
working.
This is one of the most frequently asked questions by new users..
I added a tip to my new docs:
On Saturday, 9 January 2016 at 12:43:32 UTC, Øivind wrote:
Why doesn't this work? Seems like it should:
D defines version to only work on *complete* blocks. You're
trying to use it on a partial block there.
You'll have to try something else. Perhaps copying the whole enum
in the different
On Monday, 4 January 2016 at 16:56:15 UTC, Martin Tschierschke
with the "same" Ubuntu release, I got an error, may be its 32
not 64 Bit?
Any hint?
Yeah, probably.
On Friday, 1 January 2016 at 17:00:23 UTC, TheDGuy wrote:
If i had known that blog existed. I think your example at the
end of the page explains the problem really well.
Thanks!
I just wrote that example in response to this thread :P (the
overall thing there is something i started last week
On Monday, 21 December 2015 at 23:17:45 UTC, Daniel Kozák wrote:
If you want to reinvent the wheel you can use
It isn't really reinventing the wheel to just use an alternate
library... it isn't like the bundled functions with the OS are
hard to use and you really should understand how they
On Tuesday, 22 December 2015 at 15:29:16 UTC, Shriramana Sharma
wrote:
1) At func(100) why isn't the compiler complaining that it is
able to match two templates i.e. the ones printing 2 and 3?
Because the specialized one just wins the context. It only
complains when there's two equal ones.
On Tuesday, 22 December 2015 at 15:22:49 UTC, Shriramana Sharma
wrote:
Is a type not a symbol? I mean, alias can refer to both, no?
Keywords aren't symbols so `int` is a type, but not a symbol and
thus qualifies as `T` but not as `alias T`.
On Monday, 21 December 2015 at 18:02:55 UTC, default0 wrote:
I don't have an IRC client set up since I rarely use that, plus
an IRC is always kind of "out of the way".
Just click this link:
http://webchat.freenode.net/?channels=d
type in a random name, click the captcha checkbox and go!
Well, what I'd really want to document here's isn't necessarily
the nitty-gritty of the idiom and why it is used (that's a thing
for api authors, but these docs are targeted at api consumers),
but more just what it actually means at a glance.
That line of code simply means "pred must be a
On Friday, 25 December 2015 at 12:43:05 UTC, Jakob Jenkov wrote:
If I write a program in D and I use Windows for development but
want it to run on Linux, do I have to copy the source code to
the target Linux machine and compile it there, to make an
executable for that machine? What is the
On Saturday, 26 December 2015 at 20:11:27 UTC, karthikeyan wrote:
I experience the same as the OP on Linux Mint 15 with dmd2.069
and 64 bit machine. I have to press enter twice to get the
output. I read http://ddili.org/ders/d.en/input.html and
inserted a space before %s but still no use. Am
On Saturday, 26 December 2015 at 19:40:59 UTC, Jay Norwood wrote:
Simple VS console app in D.
If you are running inside visual studio, you need to be aware
that output will be block buffered, not line buffered, because VS
pipes the output making the program think it is talking to
another
On Friday, 18 December 2015 at 18:25:03 UTC, Taylor Hillegeist
wrote:
Is it possible to view the expanded form of templates or
perhaps view the post-ctfe pre-compiled d code? I couldn't find
any information on this topic but I think it would be useful.
sometimes I use templates/mixins to write
On Friday, 18 December 2015 at 22:14:04 UTC, Fer22f wrote:
When I remove the string literal and replace it with null, it
compiles. .ptr and .toStringz both give immutable char*
references, and don't work. A "cast(char *)"DNS=*maydns*;""
works, but it feels a lot like a hack that will not work
On Sunday, 27 December 2015 at 16:05:39 UTC, Gary Willoughby
wrote:
void foo(ref int x)
foo(y++);
If I remove the post-increment of the y variable if works. Is
this an rvalue reference issue?
Yes, but more than that, what, exactly, would you expect from
that? The order of operations
On Sunday, 27 December 2015 at 18:40:55 UTC, Jeremy DeHaan wrote:
I was playing around with some code today and I noticed that in
some cases struct destructors are not called.
struct destructors are called when the struct ceases to exist in
the program.
A global variable never ceases to
On Sunday, 27 December 2015 at 19:04:11 UTC, Jeremy DeHaan wrote:
So are these left dangling or do they actually get cleaned up
at the program exit?
They are left dangling right now. You can clear it yourself by
defining a `static ~this() { .destroy(your struct); }` somewhere
in the module.
On Tuesday, 22 December 2015 at 03:30:32 UTC, ShinraTensei wrote:
my question is weather the D is actually used anywhere
D rox and is used by a lot of people.
are there chances of it dying anytime soon.
It can never die as long as we remember it...
On Wednesday, 23 December 2015 at 20:49:21 UTC, Taylor Hillegeist
wrote:
| GRAPICS LIB |
+---+---+---+ <- what is this interface
|SDL|GDI|OPENGL.|
+---+---+---+
SDL, GDI, and OpenGL *are* graphics libs so it seems a bit silly
to put an interface there.
On Monday, 21 December 2015 at 15:55:13 UTC, default0 wrote:
Well if I post this as a question to SO and link it here, would
you mind answering it? Maybe we should make this a general
scheme: If someone has trouble learning something, just ask the
question directly on SO and have someone
On Monday, 21 December 2015 at 13:51:57 UTC, default0 wrote:
The thing I was trying to do was dead simple: Receive a base64
encoded text via a query parameter.
So when I read this, I thought you might have missed another
little fact... there's more than one base64.
Yup, normal Base64
On Monday, 21 December 2015 at 15:49:14 UTC, thedeemon wrote:
Out of curiosity I looked into "D Cookbook" to check if it
contains your particular case but the only mention of Base64
there is about encoding some data into Base64, not the other
way around.
Hmm, yeah, I didn't want to have any
On Friday, 27 November 2015 at 02:05:49 UTC, H. S. Teoh wrote:
For authentication, the password shouldn't even be sent over
the wire. Instead, the server (which knows the correct
password) should send a challenge to the client
Most web setups can't rely on that tho cuz of the lameness of
On Friday, 27 November 2015 at 14:05:46 UTC, drug wrote:
pragma(msg, [EnumMembers!Sqrts]);
pragma(msg, __traits(allMembers, Sqrts));
On Monday, 23 November 2015 at 20:02:16 UTC, Cameron Reid wrote:
Is such a thing possible? If so, where might I go to educate
myself?
Yes, though the D stdlib doesn't help a whole lot, unless you
want to use threads and that's blargh, I hate using threads and
recommend you avoid them when
On Wednesday, 25 November 2015 at 21:26:09 UTC, Meta wrote:
Since when?
A long time, at least with the -w switch turned on when compiling.
On Friday, 27 November 2015 at 07:46:33 UTC, H. S. Teoh wrote:
1) The server stores password01 in the user database.
I still wouldn't actually store this, hash it anyway and use that
as the new "password".
On Tuesday, 1 December 2015 at 15:15:50 UTC, kraybit wrote:
But is there any way to link to other packages/modules, without
adding "_" everywhere? Consider:
sort of. You could define a custom macro
DDOC_PSYMBOL=$0
I think anyway... to make it just emit the original text without
the tag.
On Tuesday, 1 December 2015 at 15:52:04 UTC, kraybit wrote:
Hm, I see, so it's contextual? Would 'pixel' then be emphasized
if I'm in the documentation of void pixel()?
Yes. It underlines whatever the currently documented symbol is.
So at the top level, it is the module/package name. On a
On Tuesday, 1 December 2015 at 14:40:38 UTC, Jonathan Villa wrote:
MAN! what the heck? I changed the build from x86 to x64 and
there's no more errors. Even without the new pragma line.
Either way I would prefer x64 over x86.
64 bit should work better because then it uses the linker and dll
On Friday, 20 November 2015 at 14:18:00 UTC, Alex Parrill wrote:
But you don't need a template for this case; mixin templates
have access to `this`:
Indeed, this is a good answer too.
The difference between this and the template thing I did is that
yours is virtual so calling it through an
On Friday, 20 November 2015 at 14:01:13 UTC, BBasile wrote:
everything that can be done to avoid the compilations errors
will also prevent "bar" to be written in the output (because a
B will never be analyzed). The "only" fix I see is like in the
stack overflow answer: statically check if the
On Friday, 20 November 2015 at 15:43:00 UTC, BBasile wrote:
One last question: is it possible to nest the calls to
functions that take this kind of parameters ?
auto this_ = cast(T) this;
this_.bug0();
this_.bug1();
On Sunday, 22 November 2015 at 09:41:42 UTC, fred wrote:
So why most d library still static link.
It generally results in smaller and faster distributions and less
hassle for the typical D use case today.
On Sunday, 22 November 2015 at 09:55:10 UTC, fred wrote:
How to generate temporary files so compilation time speeds up.
Normal compilation only produce obj, exe.
If what i mean is that if we compile the files that unchanged,
dmd will look for that temporary files instead of .d files.
The .d
On Wednesday, 13 January 2016 at 13:53:01 UTC, Daniel N wrote:
This works:
Indeed... but interestingly, it does not work if you define the
mixin before the new constructor:
struct Test
{
mixin myCtors mixed;
alias __ctor = mixed.__ctor;
this(string s) {}
}
l.d(10):
On Thursday, 2 June 2016 at 04:01:03 UTC, Pie? wrote:
Thanks, I'll look into it. I have tried OpenGL with
simpledisplay but I cannot draw to the window. I assume other
drawing methods are required?
Yeah, you have to use the OpenGL functions instead of my painter
functions.
If so, I can
On Sunday, 5 June 2016 at 18:02:12 UTC, Suliman wrote:
I really can't understand why try-catch block do not handle
exception.
digit 1 is printing, so exception is accrue after it, but why
nothing in catch block?
http://img.ctrlv.in/img/16/06/05/57546861d8e81.png
catch(Exception e)
On Wednesday, 8 June 2016 at 14:57:11 UTC, Jonathan Marler wrote:
However, I think you have to consider the emotional impact of
this.
nodejs.org's homepage is served by nginx. D is general purpose,
node is specifically web.
Nobody seems to care (probably because using nginx is the
On Wednesday, 8 June 2016 at 15:05:54 UTC, Ola Fosheim Grøstad
wrote:
The forum-index http header report:
Server:nginx/1.4.6 (Ubuntu)
People check out stuff like that.
Yeah, and that's an industry-standard production deployment.
But perhaps we should just change the server line for the
On Wednesday, 8 June 2016 at 17:05:42 UTC, Jonathan Marler wrote:
I can picture the article now:
I can't. It is an industry-standard deployment with a commonly
used configuration option - people change that all the time. PHP,
for example, will modify it to output something like this:
On Monday, 6 June 2016 at 15:23:50 UTC, chmike wrote:
I would like an implicit conversion of Info to bool that return
false if category_ is null so that I can write
add:
bool opCast(T : bool)() {
return whatever;
}
to the struct and it should work.
With the newest dmds, if you use -m32mscoff you just use the
Microsoft libraries and linkers and the core.sys.windows is
pretty full - should be easy to use.
On Tuesday, 7 June 2016 at 15:39:59 UTC, jmh530 wrote:
My sense is that putting it on the GC heap gives the struct
reference semantics.
It doesn't matter what heap it is on, you are just using a
pointer here.
Struct pointers in D will automatically dereference with a.x, so
no need for the
On Sunday, 12 June 2016 at 13:05:48 UTC, Joerg Joergonson wrote:
BTW, when I compile a simple project with your simpledisplay it
takes up around 300MB(for ldc, 400 for dmd) and uses about 15%
cpu.
What's your code? The library itself does fairly little so the
time probably depends on your
On Sunday, 12 June 2016 at 04:19:33 UTC, Joerg Joergonson wrote:
2. I got an error that I don't get with dmd:
Error: incompatible types for ((ScreenPainter) !is (null)):
cannot use '!is' with types
and I have defined ScreenPainter in my code. It is also in
arsd's simpledisplay. I do not
On Friday, 10 June 2016 at 20:30:36 UTC, Joerg Joergonson wrote:
Why isn't there a proper binaries for ldc and gdc that work out
of the box like dmd? There used to be. What's up with all this
arm-linux-genuabi crap?
Those are proper binaries that work out of the box on different
platforms.
On Saturday, 11 June 2016 at 01:04:28 UTC, David Nadlinger wrote:
Knowing Adam, though, simpledisplay probably only depends on
the Win32 API, so I'm not sure where the issue would be in the
first place.
It also uses opengl32.lib that could be a problem. I offer the
.omf file on my github for
On Saturday, 11 June 2016 at 02:33:46 UTC, Alex Parrill wrote:
Mixins are statements.
No, they're not. Well, yes they are [1], but there are also mixin
expressions [2]. Not to be confused with the TemplateMixin[3],
which is indeed always a statement.
1:
On Friday, 10 June 2016 at 22:01:15 UTC, Joerg Joergonson wrote:
The problem I'm getting with ldc, using your simpledisplay, is
that the libs aren't loading due to the wrong format.
What's the exact message and what did you do? The opengl32.lib I
have on my github is for dmd 32 bit, ldc uses
On Saturday, 4 June 2016 at 01:04:08 UTC, Pie? wrote:
alias this pImage;
It is actually `alias pImage this;`
That should do what you want right here. Then you can add your
own methods or wrap/disable the image ones one by one.
On Friday, 3 June 2016 at 20:06:50 UTC, Pie? wrote:
Thanks! It is working. A few issues with my images being
clipped and not throwing when file doesn't exist...
That's weird.. I don't know what's going on there.
BTW have you seen my documentation site too?
On Sunday, 12 June 2016 at 14:22:54 UTC, Joerg Joergonson wrote:
Error: undefined identifier 'Sleep' in module 'core.thread',
did you mean function 'Sleep'?
It is supposed to be `Thread.sleep(1.seconds);`
I'm pretty sure the capital Sleep() is supposed to be private
(that is the
On Saturday, 11 June 2016 at 04:20:38 UTC, Joerg Joergonson wrote:
BTW I make your code a bit better with resizing
case WM_SIZING:
goto size_changed;
break;
I left that out intentionally because it lagged on my computer...
so I wanted it to stay blank.
Maybe it can be made more
On Tuesday, 14 June 2016 at 13:53:10 UTC, ketmar wrote:
cat $subj | sed -r 's/^Are (.+) (gc.+)\?$/\1 are \2./'
lol nice answer
so yeah they are scanned for pointers just like anything else
(meaning if they contain no pointers they are not scanned!) but
remember globals never go out of
On Tuesday, 14 June 2016 at 03:15:04 UTC, Jonathan Marler wrote:
It actually is a free function
no, it isn't, it is on File.
Your code doesn't compile on my dmd (and indeed it shouldn't on
yours either unless you have a version mismatch. rdmd just calls
dmd, it doesn't produce its own
On Monday, 6 June 2016 at 03:11:32 UTC, Pie? wrote:
e.g., how could I do this easily with your read in your png
module? It takes a file..
/// Easily reads a png file into a MemoryImage
MemoryImage readPng(string filename) {
import std.file;
return
On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote:
I believe the essentially converted the file into a ubyte or
something and then wrote that out to a temp file and read in
the temp file... this seems a bit of a kludge to me.
They might do that for certain special cases, but
On Wednesday, 8 June 2016 at 13:13:07 UTC, Jonathan Marler wrote:
I've decided to write a web application using vibe and was
shocked to see that dlang.org was using apache.
It is very common for real world web apps to run behind Apache,
nginx, IIS, or another major production server.
These
On Saturday, 28 May 2016 at 11:50:33 UTC, Lodovico Giaretta wrote:
Let's say I have a generic function that uses pointers. It will
be inferred @system by the compiler, but I know that the
pointer usage can be @trusted.
What kind of pointer usage do you have? Remember that basic & and
*
On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote:
I am doing something wrong ?
So, the benchmark, the Ruby, and the JS all use the path to be
/ the D seems to use /companies (though I don't know vibe).
Is that right?
On Friday, 27 May 2016 at 14:43:47 UTC, ArturG wrote:
if(value is typeof(value).init) ...
that still requiers a special case for floating points, arrays
and optionally empty string literals.
Have you tried? That should work in all cases.
oooh, I wanna try my libs.
Where's your database dump?
On Friday, 27 May 2016 at 14:56:28 UTC, ArturG wrote:
float f;
if(f is float.init) "float init".writeln;
f = float.nan;
if(f is float.init) "float nan".writeln;
You changed it to a value that isn't float.init, so of course it
isn't going to match!
float.nan and float.init are
On Friday, 27 May 2016 at 17:37:38 UTC, Andrew Edwards wrote:
extern (C) class IDirectSound : IUnknown
That should just be `interface IDirectSound : IUnknown`
On Friday, 27 May 2016 at 14:54:30 UTC, pineapple wrote:
I've encountered one remarkable difference: The phobos function
accepts arrays and mine does not.
add `import std.array;` i think to your module and it should make
arrays ranges
On Friday, 27 May 2016 at 14:46:47 UTC, llaine wrote:
What are you using to do web if you don't user Vibe.d?
I wrote my own web libraries starting back in ~2009ish (well
before vibe.d existed) and still use them.
The modules are in here: https://github.com/adamdruppe/arsd
though I don't
On Friday, 27 May 2016 at 15:19:50 UTC, ArturG wrote:
yes but i have to check for that when some one does
Why? This is no different than if they set any of the other four
billion possible values.
On Thursday, 26 May 2016 at 07:51:46 UTC, Era Scarecrow wrote:
If the ptr is at offset 0, we declare it first, otherwise
second, simple... Except this fails since "no property
'offsetof' for type 'void*'". SO... I make a template to test
for it instead.
Built-in arrays are kinda magical
On Thursday, 26 May 2016 at 12:30:30 UTC, Alex Parrill wrote:
The line "not having to make another array to keep track of
lengths and then shorten them" is fairly vague. "Shortening" an
array via slicing is basically free (it's just some integer
arithmetic), but I'm not sure if that's what you
On Thursday, 2 June 2016 at 03:19:20 UTC, Pie? wrote:
I'm curious about how to draw a scaled image.
There's a few general options:
1) Scale it yourself in-memory then draw. This is a pain, I don't
think my public libraries have a scale method
2) If on MS Windows, you can resize the
On Tuesday, 31 May 2016 at 18:55:18 UTC, Gary Willoughby wrote:
Is there any overhead compared with pointer arithmetic in a for
loop?
Very very little. The slice will ensure start and stop indexes
are in bounds before the loop (and throw an RangeError if it
isn't), but inside the loop, it
On Tuesday, 21 June 2016 at 23:15:58 UTC, Joerg Joergonson wrote:
Does D have a timer?
You could make one with threads or timeouts, or event loop and
GUI libraries have one.
Like simpledisplay.d has a Timer class
http://dpldocs.info/experimental-docs/arsd.simpledisplay.Timer.html and i'm
On Tuesday, 21 June 2016 at 12:48:04 UTC, Gary Willoughby wrote:
I have no idea what that means. Can anyone shed more light on
this, please?
So when you use local variables in a delegate, the compiler
usually makes a copy of them just in case the delegate gets saved
for later.
When you
On Monday, 20 June 2016 at 15:13:53 UTC, Gary Willoughby wrote:
I think the problem is that the delegate which is required by
opApply is allocated using the GC.
make the delegate in opApply scope
int opApply(scope int delegate(whatever) dg)
On Saturday, 18 June 2016 at 01:20:16 UTC, Joerg Joergonson wrote:
Error: undefined identifier 'sleep', did you mean function
'Sleep'?
"import core.thread; sleep(10);"
It is `Thread.sleep(10.msecs)` or whatever time - `sleep` is a
static member of the Thread class.
They mention to use
On Saturday, 18 June 2016 at 01:44:28 UTC, Joerg Joergonson wrote:
I simply removed your nextpowerof2 code(so the width and height
wasn't being enlarged) and saw no memory change). Obviously
because they are temporary buffers, I guess?
right, the new code free() them right at scope exit.
If
On Saturday, 18 June 2016 at 01:57:49 UTC, Joerg Joergonson wrote:
Ok. Also, maybe the GC hasn't freed some of those temporaries
yet.
The way GC works in general is it allows allocations to just
continue until it considers itself under memory pressure. Then,
it tries to do a collection.
On Sunday, 19 June 2016 at 19:59:28 UTC, Joerg Joergonson wrote:
This should be completely valid since B!T' obviously derives
from A!T directly and we see that T' derives from b which
derives from a directly. So B!b is an entirely derived from A!a
and hence the cast should be successful
I
On Saturday, 18 June 2016 at 07:55:41 UTC, Dlangofile wrote:
- compile from inside (rdmd or dmd right now)
- jump in the code fixing the compilation errors?
:set makeprg=rdmd\ %
Do that to setup, then just
:make
to tell it to run that command and jump around to the errors it
sees.
On Monday, 20 June 2016 at 21:39:45 UTC, Joerg Joergonson wrote:
adding
if (i >= previousLine.length) break;
prevents some crashes and seems to work.
So previousLine should be either the right length or null, so I
put in one test.
Can you try it on your test image?
BTW I do a few
On Friday, 17 June 2016 at 02:55:43 UTC, thedeemon wrote:
I've bumped into this previously. It allocates a lot of
temporary arrays for decoded chunks of data, and I managed to
reduce those allocations a bit, here's the version I used:
If you can PR any of it to me, I'll merge.
It actually
On Friday, 17 June 2016 at 01:51:41 UTC, Joerg Joergonson wrote:
Are you keeping multiple buffers of the image around? A
trueimage, a memoryimage, an opengl texture
MemoryImage and TrueImage are the same thing, memory is just the
interface, true image is the implementation.
OpenGL texture
On Friday, 17 June 2016 at 04:54:27 UTC, Joerg Joergonson wrote:
ok, then it's somewhere in TrueColorImage or the loading of the
png.
So, opengltexture actually does reallocate if the size isn't
right for the texture... and your image was one of those sizes.
The texture pixel size needs to
On Sunday, 10 January 2016 at 10:10:46 UTC, zabruk70 wrote:
void myFunc(char[] arg) { ubyte[] arg2 = cast(ubyte[]) arg; ...}
void myFunc(const(void)[] arg) {
const(ubyte)[] arg2 = cast(const(ubyte)[]) arg;
// use arg2
}
A `const(void)[]` type can accept any array as input. void[] is
On Wednesday, 13 January 2016 at 18:34:14 UTC, Josh Phillips
wrote:
extern(Windows)
LRESULT WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
lParam)
You just need to explicitly mark it nothrow in the signature. Add
`nothrow` to the end of the param list:
extern(Windows)
LRESULT
On Friday, 15 January 2016 at 18:32:22 UTC, sanjayss wrote:
Is there any reason that this module is not complete for
platforms other than Linux
Nobody has written it up, except the parts they use.
On Friday, 15 January 2016 at 21:21:26 UTC, sanjayss wrote:
Is the contribution process straightforward.
For this, yes. Should be able to just fork druntime and edit the
ioctl.d that exists to flesh it out to be more complete.
Make sure it matches the original C names, values, etc., and
On Saturday, 16 January 2016 at 01:27:32 UTC, Andre Polykanine
wrote:
Does anyone have an actual example of, say, a simple form with
a set of radio buttons or check boxes to start with?
Thanks in advance!
Sort of. I still haven't used it in a real world program so it
isn't complete but
On Tuesday, 19 January 2016 at 00:33:21 UTC, Johan Engelen wrote:
Is it possible to do conditional compilation inside an array
initializer?
No, but you might break it up:
enum inttable_1 = [1,4];
version(smth)
enum inttable_middle = [5,6];
else
enum inttable_middle = [];
enum
On Saturday, 25 June 2016 at 13:44:48 UTC, Andre Pany wrote:
Does D/Phobos has any support for thunks?
It isn't included in the stdlib, but you can use the same C++
they describe in the link in D.
On Saturday, 6 February 2016 at 22:13:55 UTC, cy wrote:
I'm not clear on why you aren't allowed to allocate memory with
compile time execution
You can... use the built-in new operator or arrays, etc.
or why access to the filesystem is restricted. (Unless you pass
-J/ I think?)
CTFE is a
On Saturday, 6 February 2016 at 11:15:06 UTC, Ola Fosheim Grøstad
wrote:
Nothing prevents you from creating your own reference counting
mechanism.
A struct wrapper doesn't give the things you need to reliably
handle inheritance.
interface A {}
interface B {}
class C : A, B {}
void
On Monday, 8 February 2016 at 08:25:09 UTC, cy wrote:
How do I get warned for leaving those, and a list of which ones
I can safely remove?
Remove one, recompile. If it passes, leave it. If not, undo and
move on to the next one.
On Tuesday, 26 January 2016 at 04:31:07 UTC, Igor wrote:
then std.algorithm.find!("a.myInt == b")(classes, 3)
Try
std.algorithm.find!("a.myInt == b")(classes[], 3)
notice the [] after classes
I guess std.container.array isn't a range? Or am I using it
wrong?
Containers aren't really
On Friday, 29 January 2016 at 22:36:37 UTC, Marek Janukowicz
wrote:
I have trouble understanding how endianess works for UTF-16.
UTF-16 (as well as UTF-32) comes in both little-endian and
big-endian variants. A byte-order marker in the file can help you
detect which one it is in.
See t his
On Wednesday, 3 February 2016 at 14:01:24 UTC, Ivan Kazmenko
wrote:
1. What works.
Read my post here:
http://stackoverflow.com/questions/34398408/struct-declaration-order/34398642#34398642
then see if you can use the same reasoning on your problem.
On Wednesday, 3 February 2016 at 16:07:59 UTC, Messenger wrote:
What is a good way to try to force it? Using enum? Then
optionally copying the value once to avoid the "manifest
constant" copy/paste behaviour, where applicable?
Yes, or static local variables are ctfe initialized too.
On Wednesday, 3 February 2016 at 15:34:51 UTC, Andrea Fontana
wrote:
enum first = very_very_long_function(10);
auto second = very_very_long_function(12);
Why second init doesn't work with CTFE?
You never asked for CTFE.
CTFE only happens when it *has* to - when you write code
On Friday, 29 January 2016 at 18:27:50 UTC, Tofu Ninja wrote:
where link.exe
C:\D\dmd2\windows\bin\link.exe
-m64 needs a different link.exe. It uses the Microsoft linker so
you've gotta be sure that one is installed and the path of the VS
bin is in there too.
The dmd install exe will do
501 - 600 of 2432 matches
Mail list logo