On Wed, 18 Jul 2012 22:20:51 -0700, Caligo iteronve...@gmail.com wrote:
Just curious, if Walter is too busy to make DMD more stable, then what
does he spend most of his time on? I thought we were done with adding
new features to the language (at least for now)?
While COFF/x64 support for is
On Thursday, July 19, 2012 00:20:51 Caligo wrote:
Just curious, if Walter is too busy to make DMD more stable, then what
does he spend most of his time on? I thought we were done with adding
new features to the language (at least for now)?
No one said anything about Walter not making dmd more
On 07/18/2012 03:32 PM, Christophe Travert wrote:
Matthias Walter , dans le message (digitalmars.D:172673), a écrit :
I looked at Bug #6153 (Array!(Array!int) failure) and found that the
This exactly is what makes the following code fail:
Array!(Array!int) array2d;
array2d.length = 1;
On 2012-07-18 22:12, Walter Bright wrote:
How would you get the arguments inside foo?
I don't know, you're the compiler writer :) I don't know these kind of
things, that's why I started this thread. I'm just telling you how
GCC/Clang treats these code snippets.
--
/Jacob Carlborg
On Wednesday, 18 July 2012 at 13:32:39 UTC,
trav...@phare.normalesup.org (Christophe Travert) wrote:
I think opIndex should return by reference. opIndexAssign is of
no help
when the user want to use a function that takes a reference
(here
Array.insert).
Having already brought this up before,
On Wednesday, 18 July 2012 at 08:08:21 UTC, Dejan Lekic wrote:
There are several places for D module system to improve.
One thing we discussed in the past is the versioning, and as
far as I remember, we did not come to any constructive
conclusion.
Java has been criticised often for not
monarch_dodra , dans le message (digitalmars.D:172700), a écrit :
I think it would be better to initialize on copy, rather than
default initialize. There are too many cases an empty array is
created, then initialized on the next line, or passed to
something else that does the initialization
On Wednesday, 18 July 2012 at 20:13:10 UTC, Walter Bright wrote:
On 7/18/2012 11:47 AM, Jacob Carlborg wrote:
On 2012-07-18 20:43, Walter Bright wrote:
On 7/18/2012 4:59 AM, Jacob Carlborg wrote:
Does that mean that this C++ declaration:
void foo (...);
Not allowed in C or C++.
When
On Thu, 19 Jul 2012 08:33:12 +0100, Paulo Pinto pj...@progtools.org
wrote:
On Wednesday, 18 July 2012 at 20:13:10 UTC, Walter Bright wrote:
On 7/18/2012 11:47 AM, Jacob Carlborg wrote:
On 2012-07-18 20:43, Walter Bright wrote:
On 7/18/2012 4:59 AM, Jacob Carlborg wrote:
Does that mean
On 07/19/2012 10:14 AM, Christophe Travert wrote:
monarch_dodra , dans le message (digitalmars.D:172700), a écrit :
I think it would be better to initialize on copy, rather than
default initialize. There are too many cases an empty array is
created, then initialized on the next line, or
monarch_dodra monarchdo...@gmail.com wrote in message
news:srtxvzubdafcjzwwn...@forum.dlang.org...
That said, I did not know of this 0o prefix. It sounds like a good idea,
and I see no reason not to add it, other than it is hard work for the
compiler devs of course, who already have a lot of
On 2012-07-19 11:18, foobar wrote:
I'd say that this is going in the wrong direction.
I read an article a while ago that was really enlightening about this
subject. The gist was that a module system is the wrong abstraction.
Modules are an artifact of procedural thinking in that they are
On Thursday, 19 July 2012 at 08:14:25 UTC,
trav...@phare.normalesup.org (Christophe Travert) wrote:
monarch_dodra , dans le message (digitalmars.D:172700), a
écrit :
I think it would be better to initialize on copy, rather
than default initialize. There are too many cases an empty
array is
On 2012-07-19 11:38, Regan Heath wrote:
asn't ware that was valid ANSI C, perhaps it's a GCC/clang
feature? Can anyone find docs on it?
Note that it only works when compiling as C++. Perhaps it works like this:
If C++ is interpreting this:
void foo ();
As:
void foo (void);
Perhaps it
monarch_dodra , dans le message (digitalmars.D:172710), a écrit :
One of the reason the implementation doesn't let you escape a
reference is that that reference may become (_unverifiably_)
invalid.
The same applies to a dynamic array: it is undistinguishable from a
sliced static array. More
How was the reception of the idea of binary literals as opposed
to octal (I think it's an awesome feature, I think D, OCaml and
Java 7 are the only ones that have it)? How long did it take to
decide to implement it?
Hi,
I'm an occasional lurker on the D forums just to see where the
language is going,but I'm a little puzzled. In another thread I
found this code
auto r = [5, 3, 5, 6, 8].sort.uniq.map!(x = x.to!string);
I don't understand whats going on here. Int array is getting
sorted, then Uniqued,
On Thursday, 19 July 2012 at 14:21:47 UTC, Petr Janda wrote:
Hi,
I'm an occasional lurker on the D forums just to see where the
language is going,but I'm a little puzzled. In another thread I
found this code
auto r = [5, 3, 5, 6, 8].sort.uniq.map!(x = x.to!string);
I don't understand whats
Am 19.07.2012 16:21, schrieb Petr Janda:
Hi,
I'm an occasional lurker on the D forums just to see where the language
is going,but I'm a little puzzled. In another thread I found this code
auto r = [5, 3, 5, 6, 8].sort.uniq.map!(x = x.to!string);
I don't understand whats going on here. Int
btw - as for your complains - I would blame poor D documentation
more than the feature itself; as for what type is x, it's
inferred from the prototype of the called function; type
inference is a standard feature in many static languages.
On Thursday, 19 July 2012 at 14:21:47 UTC, Petr Janda wrote:
Hi,
Hi
I'm an occasional lurker on the D forums just to see where the
language is going,but I'm a little puzzled. In another thread I
found this code
auto r = [5, 3, 5, 6, 8].sort.uniq.map!(x = x.to!string);
Here's list what
q66 , dans le message (digitalmars.D:172716), a écrit :
(so instead of calling a(b(c(d(e(f) you can just call
a.b.c.d.e.f())
rather f.e.d.c.b.a, if you omit the empty parenthesis after each letter
(but f).
On 19-07-2012 16:31, Petr Janda wrote:
Array gets sorted, then doubles are removed (uniq) and then everything
is converted to a string (map).
Everything was recently introduced around 2.059.
Ok, but what is map!(). What's the point of the exclamation mark, is it
a template specialization?
On Thursday, 19 July 2012 at 14:31:41 UTC, Petr Janda wrote:
Array gets sorted, then doubles are removed (uniq) and then
everything is converted to a string (map).
Everything was recently introduced around 2.059.
Ok, but what is map!(). What's the point of the exclamation
mark, is it a
Array gets sorted, then doubles are removed (uniq) and then
everything is converted to a string (map).
Everything was recently introduced around 2.059.
Ok, but what is map!(). What's the point of the exclamation mark,
is it a template specialization?
On Thursday, 19 July 2012 at 14:33:49 UTC, q66 wrote:
On Thursday, 19 July 2012 at 14:31:41 UTC, Petr Janda wrote:
Array gets sorted, then doubles are removed (uniq) and then
everything is converted to a string (map).
Everything was recently introduced around 2.059.
Ok, but what is map!().
Am 19.07.2012 16:31, schrieb Petr Janda:
Array gets sorted, then doubles are removed (uniq) and then everything
is converted to a string (map).
Everything was recently introduced around 2.059.
Ok, but what is map!(). What's the point of the exclamation mark, is it
a template specialization?
Petr Janda , dans le message (digitalmars.D:172719), a écrit :
Array gets sorted, then doubles are removed (uniq) and then
everything is converted to a string (map).
Everything was recently introduced around 2.059.
Ok, but what is map!(). What's the point of the exclamation mark,
is it a
On Thursday, 19 July 2012 at 14:31:53 UTC,
trav...@phare.normalesup.org (Christophe Travert) wrote:
q66 , dans le message (digitalmars.D:172716), a écrit :
(so instead of calling a(b(c(d(e(f) you can just call
a.b.c.d.e.f())
rather f.e.d.c.b.a, if you omit the empty parenthesis after
Robik , dans le message (digitalmars.D:172718), a écrit :
On Thursday, 19 July 2012 at 14:21:47 UTC, Petr Janda wrote:
Hi,
Hi
I'm an occasional lurker on the D forums just to see where the
language is going,but I'm a little puzzled. In another thread I
found this code
auto r = [5, 3,
On 19-07-2012 16:36, Christophe Travert wrote:
Petr Janda , dans le message (digitalmars.D:172719), a écrit :
Array gets sorted, then doubles are removed (uniq) and then
everything is converted to a string (map).
Everything was recently introduced around 2.059.
Ok, but what is map!(). What's
Petr Janda , dans le message (digitalmars.D:172727), a écrit :
On Thursday, 19 July 2012 at 14:31:53 UTC,
trav...@phare.normalesup.org (Christophe Travert) wrote:
q66 , dans le message (digitalmars.D:172716), a écrit :
(so instead of calling a(b(c(d(e(f) you can just call
a.b.c.d.e.f())
Alex Rønne Petersen , dans le message (digitalmars.D:172728), a écrit :
On 19-07-2012 16:36, Christophe Travert wrote:
Petr Janda , dans le message (digitalmars.D:172719), a écrit :
Array gets sorted, then doubles are removed (uniq) and then
everything is converted to a string (map).
On 19-07-2012 16:21, Petr Janda wrote:
Hi,
I'm an occasional lurker on the D forums just to see where the language
is going,but I'm a little puzzled. In another thread I found this code
auto r = [5, 3, 5, 6, 8].sort.uniq.map!(x = x.to!string);
I don't understand whats going on here. Int array
On 07/19/2012 04:21 PM, Petr Janda wrote:
Hi,
I'm an occasional lurker on the D forums just to see where the language
is going,but I'm a little puzzled. In another thread I found this code
auto r = [5, 3, 5, 6, 8].sort.uniq.map!(x = x.to!string);
I don't understand whats going on here. Int
No, please, template instantiation. Specialization is something
completely different, and doesn't happen at the call site.
Sorry, my fault. I'm a non-native english speaker.
What I meant is calling functionstring(args)
I think it's called instantiation.
Dave X. dxuhu...@gmail.com wrote in message
news:cokspgduvpyzcbioa...@forum.dlang.org...
How was the reception of the idea of binary literals as opposed to octal
(I think it's an awesome feature, I think D, OCaml and Java 7 are the only
ones that have it)? How long did it take to decide to
It's just syntax. Eliminating syntax noise is fine. Code should
look
like what it does.
Not if eliminating noise equals to making things harder to
understand.
When you say (int x) { return x; } it's clear about what it is, a
_function_ without name.
On 07/19/2012 05:03 PM, Petr Janda wrote:
It's just syntax. Eliminating syntax noise is fine. Code should look
like what it does.
Not if eliminating noise equals to making things harder to understand.
Harder to understand to whom? Optimizing stuff for beginners usually
makes it a PITA to
On 07/19/2012 02:16 PM, Christophe Travert wrote:
monarch_dodra , dans le message (digitalmars.D:172710), a écrit :
One of the reason the implementation doesn't let you escape a
reference is that that reference may become (_unverifiably_)
invalid.
The same applies to a dynamic array: it
On 07/19/2012 04:39 PM, Petr Janda wrote:
On Thursday, 19 July 2012 at 14:31:53 UTC, trav...@phare.normalesup.org
(Christophe Travert) wrote:
q66 , dans le message (digitalmars.D:172716), a écrit :
(so instead of calling a(b(c(d(e(f) you can just call a.b.c.d.e.f())
rather f.e.d.c.b.a,
On Thu, Jul 19, 2012 at 9:03 AM, Petr Janda janda.p...@gmail.com wrote:
It's just syntax. Eliminating syntax noise is fine. Code should look
like what it does.
Not if eliminating noise equals to making things harder to understand.
When you say (int x) { return x; } it's clear about what it
On Thu, Jul 19, 2012 at 9:20 AM, Brad Anderson e...@gnuk.net wrote:
On Thu, Jul 19, 2012 at 9:03 AM, Petr Janda janda.p...@gmail.com wrote:
It's just syntax. Eliminating syntax noise is fine. Code should look
like what it does.
Not if eliminating noise equals to making things harder to
On 07/19/2012 05:20 PM, Brad Anderson wrote:
On Thu, Jul 19, 2012 at 9:03 AM, Petr Janda janda.p...@gmail.com
mailto:janda.p...@gmail.com wrote:
It's just syntax. Eliminating syntax noise is fine. Code should look
like what it does.
Not if eliminating noise equals to
On 07/19/2012 04:54 AM, Mehrdad wrote:
On Tuesday, 17 July 2012 at 16:56:17 UTC, angel wrote:
I propose to introduce a reference to the current function, much like
'this' in a class method. Call it 'self' or 'thisFunc', or whatever ...
What might this be good for ?
For implementing recursion in
On Thursday, 19 July 2012 at 14:51:59 UTC, Timon Gehr wrote:
On another note, (copied from wikipedia)
foreach(item; set) {
// do something to item
}
what's with the lax syntax being allowed?
s/lax/to the point/
Shouldn't it be at least specified auto item?
Why on earth would that be the
Does something to manage object pooling exists (thread safe)?
Something like:
auto pool = new Pool!MyObj;
auto obj = pool.get;
...
...
...
pool.release(obj); // or maybe obj.release;
In a thread-safe way.
On Thursday, 19 July 2012 at 14:13:06 UTC, Dave X. wrote:
How was the reception of the idea of binary literals as opposed
to octal (I think it's an awesome feature, I think D, OCaml and
Java 7 are the only ones that have it)? How long did it take to
decide to implement it?
If they were
On 07/19/2012 08:03 AM, Petr Janda wrote:
It's just syntax. Eliminating syntax noise is fine. Code should look
like what it does.
Not if eliminating noise equals to making things harder to understand.
When you say (int x) { return x; } it's clear about what it is, a
_function_ without
Am Mon, 04 Jun 2012 23:18:31 +0400
schrieb Dmitry Olshansky dmitry.o...@gmail.com:
Compiler is like a nasty
stepchild it will give up on generating good old jump tables given any
reason it finds justifiable. (but it may use few small jump tables +
binary search, could be fine... if not in
On Thu, Jul 19, 2012 at 01:34:31PM +0200, Jacob Carlborg wrote:
On 2012-07-19 11:18, foobar wrote:
I'd say that this is going in the wrong direction.
I read an article a while ago that was really enlightening about this
subject. The gist was that a module system is the wrong abstraction.
On Thu, 19 Jul 2012 14:44:20 + (UTC)
trav...@phare.normalesup.org (Christophe Travert) wrote:
Petr Janda , dans le message (digitalmars.D:172727), a écrit :
On Thursday, 19 July 2012 at 14:31:53 UTC,
trav...@phare.normalesup.org (Christophe Travert) wrote:
q66 , dans le message
On Thu, 19 Jul 2012 16:13:05 +0200
Dave X. dxuhu...@gmail.com wrote:
How was the reception of the idea of binary literals as opposed
to octal (I think it's an awesome feature, I think D, OCaml and
Java 7 are the only ones that have it)? How long did it take to
decide to implement it?
On 2012-07-19 16:39, Petr Janda wrote:
It's another thing I hate about Ruby is that a parenthesis enforcement
is weak.
I love that :)
--
/Jacob Carlborg
Am 19.07.2012 22:43, schrieb Jacob Carlborg:
On 2012-07-19 16:50, Alex Rønne Petersen wrote:
I suspect that you have a C++ background. If this is not accurate,
ignore the rest. But if it is accurate, my plea to you is: Learn other
languages. C++ has next to no innovative language features
On 2012-07-19 16:50, Alex Rønne Petersen wrote:
I suspect that you have a C++ background. If this is not accurate,
ignore the rest. But if it is accurate, my plea to you is: Learn other
languages. C++ has next to no innovative language features (even C++11's
take on lambdas is an abomination)
On 2012-07-19 17:03, Petr Janda wrote:
It's just syntax. Eliminating syntax noise is fine. Code should look
like what it does.
Not if eliminating noise equals to making things harder to understand.
When you say (int x) { return x; } it's clear about what it is, a
_function_ without name.
What the _fuck_ guys? How did you get this many posts on what is
essentially this looks weird and I can't be fucked reading the
documentation?.
On Wednesday, 18 July 2012 at 14:55:18 UTC, Joseph Rushton
Wakeling wrote:
Hello all,
My patches to RandomSample were accepted earlier this month
(thanks to both Jonathan and Andrei:-) so I thought I'd write a
short blog post (which turned into a very long blog post...)
about random
On 07/19/12 23:03, Bernard Helyer wrote:
What the _fuck_ guys? How did you get this many posts on what is essentially
this looks weird and I can't be fucked reading the documentation?.
In other words, see subject.
On 7/18/12 7:55 AM, Joseph Rushton Wakeling wrote:
Hello all,
My patches to RandomSample were accepted earlier this month (thanks to
both Jonathan and Andrei:-) so I thought I'd write a short blog post
(which turned into a very long blog post...) about random sampling, the
algorithms concerned,
Whaddaya think?
Andrei
On Thursday, 19 July 2012 at 21:35:19 UTC, Andrei Alexandrescu
wrote:
Whaddaya think?
Andrei
#dlang is what people have been using on G+. You'll have to
convince the Japanese guys to switch. It's mostly them (Kenji,
SHOO, Mr. Fiber) and Bernard using #d_lang on Twitter. I prefer
#dlang
Zim desktop 'wiki.'
Sounds rather stupid but it is very nice for informal style.
It uses Markdown by default and comes with inline support for 'naked'
LaTeX.
It outputs to HTML, and doesn't look half bad for a five-minute learning
curve.
On Wed, 18 Jul 2012 09:55:06 -0500, Joseph
On Thu, 19 Jul 2012 22:45:10 +0200
Paulo Pinto pj...@progtools.org wrote:
Am 19.07.2012 22:43, schrieb Jacob Carlborg:
On 2012-07-19 16:50, Alex Rønne Petersen wrote:
I suspect that you have a C++ background. If this is not accurate,
ignore the rest. But if it is accurate, my plea to you
I suspect that you have a C++ background. If this is not
accurate, ignore the rest. But if it is accurate, my plea to
you is: Learn other languages. C++ has next to no innovative
language features (even C++11's take on lambdas is an
abomination) and encourages defensive programming to the
On Thursday, 19 July 2012 at 21:35:19 UTC, Andrei Alexandrescu
wrote:
Whaddaya think?
I've been using #d_lang so far, but now that dlang.org exists,
#dlang certainly seems like the better choice.
David
On 7/19/12 3:42 PM, David Nadlinger wrote:
On Thursday, 19 July 2012 at 21:35:19 UTC, Andrei Alexandrescu wrote:
Whaddaya think?
I've been using #d_lang so far, but now that dlang.org exists, #dlang
certainly seems like the better choice.
David
Yah, that's the new thing motivating the
On Fri, 20 Jul 2012 00:32:03 +0200
David Piepgrass qwertie...@gmail.com wrote:
I suspect that you have a C++ background. If this is not
accurate, ignore the rest. But if it is accurate, my plea to
you is: Learn other languages. C++ has next to no innovative
language features (even
On Thursday, 19 July 2012 at 21:35:19 UTC, Andrei Alexandrescu
wrote:
Whaddaya think?
Andrei
#dlang is more obvious and what people would likely use if they
were guessing / didn't carefully read, especially now with
dlang.org.
On 20/07/2012 00:49, Nick Sabalausky wrote:
On Fri, 20 Jul 2012 00:32:03 +0200
David Piepgrass qwertie...@gmail.com wrote:
I suspect that you have a C++ background. If this is not
accurate, ignore the rest. But if it is accurate, my plea to
you is: Learn other languages. C++ has next to no
On Thursday, 19 July 2012 at 22:32:04 UTC, David Piepgrass wrote:
I suspect that you have a C++ background. If this is not
accurate, ignore the rest. But if it is accurate, my plea to
you is: Learn other languages. C++ has next to no innovative
language features (even C++11's take on lambdas
On 07/19/2012 10:21 AM, Petr Janda wrote:
...
I think the other points have been adequately covered.
...
auto r = [5, 3, 5, 6, 8].sort.uniq.map!(x = x.to!string);
...
I'm sorry I don't mean to be a criticizer, but it seems to me that D is
trying to be a dynamic-like compiled language way too
On Tuesday, 29 May 2012 at 09:46:54 UTC, Don Clugston wrote:
On 28/05/12 03:40, Chang Long wrote:
On Saturday, 26 May 2012 at 15:56:38 UTC, Chang Long wrote:
CTFE execute will be very useful on web develop, for example
It is
very hard to create a CTFE version template engine with rich
On Thursday, 19 July 2012 at 21:35:19 UTC, Andrei Alexandrescu
wrote:
Whaddaya think?
Andrei
No, problem.
Our official website is dlang.org :)
If hashtag changed to #dlang, I announce this change to other
Japanese programmers.
On Thursday, 19 July 2012 at 21:39:24 UTC, Brad Anderson wrote:
On Thursday, 19 July 2012 at 21:35:19 UTC, Andrei Alexandrescu
wrote:
Whaddaya think?
Andrei
#dlang is what people have been using on G+. You'll have to
convince the Japanese guys to switch. It's mostly them (Kenji,
SHOO, Mr.
On Wednesday, 18 July 2012 at 11:21:08 UTC, Paulo Pinto wrote:
* dynamically loadable plugins/extensions
From the security point of view loadable plugins are not good.
Better make use of IPC to communicate between plugins.
Since we kind of have a never recover from error-policy that's
On 7/19/12 7:33 PM, Masahiro Nakagawa wrote:
On Thursday, 19 July 2012 at 21:35:19 UTC, Andrei Alexandrescu wrote:
Whaddaya think?
Andrei
No, problem.
Our official website is dlang.org :)
If hashtag changed to #dlang, I announce this change to other Japanese
programmers.
Let's make it so.
Hi,
I've written some Deimos interface for LLVM.
https://github.com/jkm/deimos-llvm/commits/master
I'd like to get some feedback on those.
Firstly to finish these and secondly to finish some guidelines that I'd
like to propose to be published on dlang.org.
Jens
On 07/19/12 06:39, Francisco Soulignac wrote:
it's been a while since this question, and I don't know how to solve
it either. The following code passes all the test using the last
version of dmd (2.059).
import std.container, std.algorithm;
//non const case
void assertequal(T)(SList!(T)
On 07/19/2012 06:44 AM, Jonathan M Davis wrote:
On Thursday, July 19, 2012 04:39:26 Francisco Soulignac wrote:
So, my question is how can I (correctly) traverse a const SList,
const DList, etc?
Right now? I'm pretty sure that that's impossible. Hopefully that will
change,
but getting
Or template inference based on return type like
T hello(T)()
{
static if (is(T ==))
}
string v = hello();
Il giorno mer, 18/07/2012 alle 17.38 +0100, Regan Heath ha scritto:
On Tue, 17 Jul 2012 15:23:05 +0100, bearophile bearophileh...@lycos.com
wrote:
Andrea Fontana:
Hello everyone,
I had this great idea of writing a Program that intercepts all
keyboard presses and modifies them in certain cases.
I want to use it as some kind of global makro program to run in
the background and for example allow me to easily post unicode
smileys.
This is where the probelms
I have a 2 questions.
I have this code:
[code]
import std.stdio;
struct Test {
public:
this(int i = 0) {
writeln(Test CTor.);
}
this(this) {
writeln(Test Copy CTor);
}
~this() {
writeln(Test DTor);
On 07/19/2012 02:27 PM, Namespace wrote:
I have a 2 questions.
I have this code:
[code]
import std.stdio;
struct Test {
public:
this(int i = 0) {
writeln(Test CTor.);
}
this(this) {
writeln(Test Copy CTor);
}
~this() {
Is there any way to avoid the implizit copy ctor by array
concatenation?
Or is the only way to use a pointer?
On 07/19/2012 03:00 PM, Namespace wrote:
Is there any way to avoid the implizit copy ctor by array concatenation?
Or is the only way to use a pointer?
Yes, in some way you have to. If you want to not copy a lot of data (or
avoid additional on-copy effort) you either have to you pointers
Ok, so if a put a struct into an array, it will copied into the
array. But then? How it is deleted?
For exmaple, i have this code:
[code]
import std.stdio;
struct Test {
public:
static uint _counter;
this(int i = 0) {
writeln(Test CTor.);
Use std.algorithm.move if you want to avoid the copy ctor call.
Unfortunately there are two versions of this function,
SetWindowsHookExW and SetWindowsHookExA. What's the difference?
The W-Function is the Unicode version and the A is the ANSI version.
Showing the code of your DLL might help.
On Thursday, 19 July 2012 at 14:31:02 UTC, Timon Gehr wrote:
Use std.algorithm.move if you want to avoid the copy ctor call.
With move I see the lost DTor call, but not without. Ist that a
bug? o.O
But what are the differences of loading the Unicode version vs.
the ANSI version? I called the Unicode one because I figured that
would be the sensible choice, since Unicode is the default for D
(if I remember correctly). I have no clue what the actual effects
of calling the wrong version
On Thursday, 19 July 2012 at 15:36:01 UTC, Namespace wrote:
_counter is still 1 but the scope is released. How is that
possible?
Even with _arr.clear(); at the end of the scope, _counter is
still 1.
I see one CTor and one Copy CTor but only one DTor.
_arr is actually a dynamic array, which
On Thursday, 19 July 2012 at 15:49:48 UTC, DLimited wrote:
But what are the differences of loading the Unicode version vs.
the ANSI version? I called the Unicode one because I figured
that would be the sensible choice, since Unicode is the default
for D (if I remember correctly). I have no
I guess you have to 'export' the function:
extern (Windows) export LRESULT LowLevelKeyboardProc(int code,
WPARAM
wParam, LPARAM lParam)
and include
EXPORTS
LowLevelKeyboardProc
in the .DEF file
Thanks, I changed that. Also, I changed LoadLibraryW( ) to
LoadLibraryA( ) in the main program
On Thursday, 19 July 2012 at 16:38:19 UTC, DLimited wrote:
I guess you have to 'export' the function:
extern (Windows) export LRESULT LowLevelKeyboardProc(int code,
WPARAM
wParam, LPARAM lParam)
and include
EXPORTS
LowLevelKeyboardProc
in the .DEF file
Thanks, I changed that. Also, I
You don't see the WHOA message?
Try this
alias HANDLE HHOOK;
On Thursday, 19 July 2012 at 17:35:29 UTC, dnewbie wrote:
You don't see the WHOA message?
Try this
alias HANDLE HHOOK;
No, I don't get any message after key-presses. I changed int
function() to HANDLE, sadly it still doesn't work.
On Thursday, 19 July 2012 at 17:48:06 UTC, DLimited wrote:
On Thursday, 19 July 2012 at 17:35:29 UTC, dnewbie wrote:
You don't see the WHOA message?
Try this
alias HANDLE HHOOK;
No, I don't get any message after key-presses. I changed int
function() to HANDLE, sadly it still doesn't work.
On Thursday, 19 July 2012 at 18:40:15 UTC, dnewbie wrote:
On Thursday, 19 July 2012 at 17:48:06 UTC, DLimited wrote:
On Thursday, 19 July 2012 at 17:35:29 UTC, dnewbie wrote:
You don't see the WHOA message?
Try this
alias HANDLE HHOOK;
No, I don't get any message after key-presses. I changed
1 - 100 of 128 matches
Mail list logo