On Friday, 23 March 2012 at 23:01:43 UTC, Timon Gehr wrote:
On 03/23/2012 11:58 PM, David wrote:
Am 23.03.2012 23:52, schrieb H. S. Teoh:
Code:
struct S {
int f(K)(K x) {
return 1;
}
void func(K)(inout(K) x) {
auto h = f(x);
}
}
void main() {
S s;
s.func(abc); // This is line 44
}
This
On Saturday, 24 March 2012 at 19:11:38 UTC, maarten van damme
wrote:
hi,
I'm trying to call NtUnmapViewOfSection from ntdll.dll.
According to the
msdn docs it should look like
NTSTATUS NtUnmapViewOfSection(
__in HANDLE ProcessHandle,
__in_opt PVOID BaseAddress
);
I tried to call
On Saturday, 24 March 2012 at 19:11:38 UTC, maarten van damme
wrote:
hi,
I'm trying to call NtUnmapViewOfSection from ntdll.dll.
According to the
msdn docs it should look like
NTSTATUS NtUnmapViewOfSection(
__in HANDLE ProcessHandle,
__in_opt PVOID BaseAddress
);
I tried to call
I did not import ntoskrnl.lib because I'm trying to do everything in user
mode and there I have access to ntdll.dll which contains
ntunmapviewofsection. Thats why I started using implib to create an
ntdll.dll import library but I couldn't get it to work.
It's good to know that it actually
Does it exists a working ctfe parser for xml or ini or something
suitable for config file?
Something that import() file and reads values at compile times.
For example:
On my (php) website I use an optimized c++ backend (compiled as
php module). Profiling code I see that website wastes a lot
On 2012-03-25 15:04, Tyro[17] wrote:
Is there one available for use with D2 on MAC OS X?
Thanks,
Andrew
I think these are the choices on Mac OS X:
* gtkD - Bindings to GTK. Does not use the native drawing operations of
the operating system. Available on all platforms.
On Sun, Mar 25, 2012 at 11:13 AM, Jacob Carlborg d...@me.com wrote:
On 2012-03-25 15:04, Tyro[17] wrote:
Is there one available for use with D2 on MAC OS X?
Thanks,
Andrew
* QtD - Bindings to Qt. Use the native drawing operations of the operating
system (I think). Available on all
Could I get a hello, world example of parsing json? The docs look
simple enough, but I could still use an example.
On 2012-03-25 17:22, Kevin Cox wrote:
I would reccomend Qt as well. You will get native cross-platform
widgets with great performance. I am not sure how far QtD is but I know
it once had a lot of development on it.
I don't think Qt is uses the native drawing operations on Mac OS X.
--
Hello,
I need to pass objects of a hierarchy between threads and I have some
troubles.
The sample code below displays:
Unknown
B.fun()
I do not understand why an object of type A is fetched as a Variant, while
a object of type B is received correctly.
Instead of
(A a){a.fun();}
I
Hope it's clear...
import std.json;
import std.stdio;
void main(string args[])
{
JSONValue json = parseJSON(qEOS
{
key :
{
subkey1 : str_val,
subkey2 : [1,2,3],
subkey3 : 3.1415
}
}
EOS);
On 03/25/2012 12:50 PM, Andrea Fontana wrote:
Hope it's clear...
import std.json;
import std.stdio;
void main(string args[])
{
JSONValue json = parseJSON(qEOS
{
key :
{
subkey1 : str_val,
subkey2 : [1,2,3],
subkey3 : 3.1415
}
}
EOS);
writeln(json.object[key].object[subkey1].str);
I'm doing some coding against a c library, and Ds GC keeps collecting c
owned objects (I think - disabling the GC makes everything work)
But how can I figure out what the GC is (read: I am) fucking up?
I have some to!string(c_struct_field) and format(%s, c_struct_field) and
field =
On Sunday, 25 March 2012 at 19:15:05 UTC, simendsjo wrote:
I'm doing some coding against a c library, and Ds GC keeps
collecting c owned objects (I think - disabling the GC makes
everything work)
Three alternative solutions:
- Allocate from the C heap the memory that C will need to use,
and
How do I call opDispatch(string name, E...)(E elements) ?
What I want to archive is to call f.i. fm.list with an arbitrary number
of arguments without using
fm.list(1, abc, 4L, 3.33);
Instead I would prefer
fm.list = (1, abc, 4L, 3.33);
Is this somehow possible ?
import std.variant;
import
On 26 March 2012 09:45, bls bizp...@orange.fr wrote:
How do I call opDispatch(string name, E...)(E elements) ?
What I want to archive is to call f.i. fm.list with an arbitrary number of
arguments without using
fm.list(1, abc, 4L, 3.33);
Instead I would prefer
fm.list = (1, abc, 4L, 3.33);
On 03/25/2012 02:04 PM, James Miller wrote:
On 26 March 2012 09:45, blsbizp...@orange.fr wrote:
How do I call opDispatch(string name, E...)(E elements) ?
What I want to archive is to call f.i. fm.list with an arbitrary number of
arguments without using
fm.list(1, abc, 4L, 3.33);
Instead I
On 26 March 2012 10:34, bls bizp...@orange.fr wrote:
(T) (T[] t) AND (T) (T t) seems not to work.
Ok, so looking here: http://dlang.org/function.html, I have determined
that, if you are using Variant arrays (though I'm not sure if you can
do that using literals...) you can use the syntax from
On 03/25/2012 02:59 PM, James Miller wrote:
Ok, so looking here:http://dlang.org/function.html, I have determined
that, if you are using Variant arrays (though I'm not sure if you can
do that using literals...) you can use the syntax from this example:
Thanks James..
will give it tomorrow a
On 03/25/12 22:45, bls wrote:
How do I call opDispatch(string name, E...)(E elements) ?
What I want to archive is to call f.i. fm.list with an arbitrary number of
arguments without using
fm.list(1, abc, 4L, 3.33);
Instead I would prefer
fm.list = (1, abc, 4L, 3.33);
Is this somehow
Thanks Artur,
On 03/25/2012 03:18 PM, Artur Skawina wrote:
On 03/25/12 22:45, bls wrote:
How do I call opDispatch(string name, E...)(E elements) ?
What I want to archive is to call f.i. fm.list with an arbitrary number of
arguments without using
fm.list(1, abc, 4L, 3.33);
Instead I would
On Sun, 25 Mar 2012 22:45:57 +0200, bls bizp...@orange.fr wrote:
How do I call opDispatch(string name, E...)(E elements) ?
What I want to archive is to call f.i. fm.list with an arbitrary number
of arguments without using
fm.list(1, abc, 4L, 3.33);
Instead I would prefer
fm.list = (1, abc,
On 03/26/12 00:58, bls wrote:
Thanks Artur,
On 03/25/2012 03:18 PM, Artur Skawina wrote:
On 03/25/12 22:45, bls wrote:
How do I call opDispatch(string name, E...)(E elements) ?
What I want to archive is to call f.i. fm.list with an arbitrary number of
arguments without using
fm.list(1,
On Sat, Mar 24, 2012 at 06:19:32PM +, Stewart Gordon wrote:
The documentation for std.range states
http://dlang.org/phobos/std_range.html
This module defines the notion of range (by the membership tests
isInputRange, isForwardRange, isBidirectionalRange,
isRandomAccessRange), range
On Fri, 23 Mar 2012 23:48:51 +0100, Andrej Mitrovic wrote:
Does someone have a map implementation that maintains the insertion
order of the keys?
E.g.:
string[string] map;
map[foo] = x;
map[bar] = y;
When iterating over map keys I want to visit foo first, then bar,
and so on.
25 matches
Mail list logo