On Friday, 30 October 2015 at 12:18:21 UTC, Gary Willoughby wrote:
On Friday, 30 October 2015 at 12:03:50 UTC, TheFlyingFiddle
wrote:
pragma(msg, is(b == enum)); //True
pragma(msg, is(a == enum)); //False.
enum isEnum(alias e) = is(e == enum);
isEnum!(a)
isEnum!(b)
;)
isEnum!(isEnum)
On Friday, 30 October 2015 at 12:03:50 UTC, TheFlyingFiddle wrote:
pragma(msg, is(b == enum)); //True
pragma(msg, is(a == enum)); //False.
enum isEnum(alias e) = is(e == enum);
isEnum!(a)
isEnum!(b)
;)
How to install DMD 64bit on Windows? Is it just a case of
downloading from here and it just works?
http://dlang.org/download.html
Or do I need Visual Studio installed?
If I was writing a screensaver in D what libraries are available
for opening a window and drawing sprites, etc on it. GPU
accelerated if possible.
I'm using Ubuntu 14.04 and latest DMD compiler.
On Monday, 12 October 2015 at 19:16:10 UTC, Gary Willoughby wrote:
If I was writing a screensaver in D what libraries are
available for opening a window and drawing sprites, etc on it.
GPU accelerated if possible.
I'm using Ubuntu 14.04 and latest DMD compiler.
I've found Dgame which looks
On Monday, 12 October 2015 at 15:38:27 UTC, ric maicle wrote:
I'm relearning D. I'm using the reference compiler (DMD) and I
am a bit confused with how the compiler 'switches' are supposed
to be used.
I find some 'switches' that require an equal (=) symbol when a
value is required to be
On Saturday, 26 September 2015 at 09:17:10 UTC, Mike McKee wrote:
I was doing toHexString(myByteArray) instead of simply doing
myByteArray.toHexString(). (That was on an md5 example, by the
way.) Intellisense would have helped me realize this.
Both these forms are the same. It's called UFCS
On Thursday, 17 September 2015 at 19:47:33 UTC, salvari wrote:
I'm parsing a text input file, the generated sql is about 1
million lines of SQL. By using mysql-native it takes about 4
hours to load data.
I've used mysql-native before to handle hundreds of millions of
rows of data and I
On Wednesday, 16 September 2015 at 10:42:13 UTC, Alex_Freeman
wrote:
Hey all! I'm just wondering how to run dub with different debug
versions, or running it with different versions generally? Is
there also a way to have code behind multiple debug versions,
or run more than one debug version at
On Tuesday, 15 September 2015 at 17:37:40 UTC, karabuta wrote:
I have tried several times to compile tkd using dub but I keep
getting this message:
Linking...
/usr/bin/ld: cannot find -ltcl
/usr/bin/ld: cannot find -ltk
It looks like the libraries are not installed or not installed
On Sunday, 13 September 2015 at 10:00:13 UTC, SuperLuigi wrote:
but whatever I put in messes up and I just get errors...
So what are the errors?
On Friday, 11 September 2015 at 00:55:41 UTC, Adam D. Ruppe wrote:
On Friday, 11 September 2015 at 00:52:00 UTC, BBasile wrote:
While trying to get why some call to memmove without the right
import didn't lead to a compilation failure i've found that
imported symbols are not private ! Is that
On Friday, 11 September 2015 at 07:13:22 UTC, Mike McKee wrote:
I'm having trouble installing GtkD on Ubuntu Linux 14.04.
Here's an old guide I wrote years ago. It might be a little out
of date but may help you put things together:
On Wednesday, 9 September 2015 at 23:22:49 UTC, ponce wrote:
- RefCounted
Only for D structs. std::shared_ptr works for all.
RefCounted works with classes as well.
http://dlang.org/phobos/std_typecons.html#.RefCounted
On Thursday, 10 September 2015 at 12:34:54 UTC, Daniel Kozák
wrote:
On Thu, 10 Sep 2015 11:38:35 +
"Gary Willoughby" wrote:
On Wednesday, 9 September 2015 at 23:22:49 UTC, ponce wrote:
> - RefCounted
>
> Only for D structs. std::shared_ptr works for all.
RefCounted works
On Monday, 7 September 2015 at 11:57:25 UTC, Bahman Movaqar wrote:
I am working on a simple project created with DUB[1].
When unit tests the output reads really cryptic to me; for
example:
Try using DUnit, it gives you much more readable fail messages:
https://github.com/nomad-software/dunit
On Monday, 7 September 2015 at 12:58:58 UTC, Gary Willoughby
wrote:
On Monday, 7 September 2015 at 11:57:25 UTC, Bahman Movaqar
wrote:
I am working on a simple project created with DUB[1].
When unit tests the output reads really cryptic to me; for
example:
Try using DUnit, it gives you much
Are there any Phobos functions to check file permissions on
Windows and Posix? For example, I want to check if a file is
readable and/or writable in a cross-platform fashion. Does anyone
have an example?
On Monday, 31 August 2015 at 01:56:05 UTC, yawniek wrote:
can someone explain a bit how the @before hooks works in detail,
i mainly have problems understanding why ensureAuth in belows
example refers to
"SampleService." as an instance:
On Sunday, 30 August 2015 at 00:02:16 UTC, anonymous wrote:
On Saturday, 29 August 2015 at 23:34:47 UTC, Gary Willoughby
wrote:
But it might not be safe:
http://forum.dlang.org/thread/ztefzijqhwrouzlag...@forum.dlang.org
That link just takes me to this thread here again.
Here's the correct
On Saturday, 29 August 2015 at 21:50:12 UTC, Mike James wrote:
On Saturday, 29 August 2015 at 20:15:53 UTC, Marc Schütz wrote:
Just cast to `Crumbs[]` directly:
import std.bitmanip;
import std.stdio;
import std.file;
struct Crumbs {
mixin(bitfields!(
ubyte,
On Thursday, 27 August 2015 at 12:40:07 UTC, Mike James wrote:
How about...
A lot nicer. :)
On Thursday, 27 August 2015 at 16:12:35 UTC, Adam D. Ruppe wrote:
On Thursday, 27 August 2015 at 16:03:58 UTC, Gary Willoughby
wrote:
Sorry, I mean the three dots '...' that seems to be what the
documentation is referring to. Also the `isCallable` template
uses it.
That just means it can
If you visit this link:
http://dlang.org/phobos/std_traits.html#isCallable
There is this paragraph:
Detect whether T is a callable object, which can be called with
the function call operator (...).
What is this function call operator? (...) Where can i learn more
about it?
On Thursday, 27 August 2015 at 15:19:15 UTC, Adam D. Ruppe wrote:
On Thursday, 27 August 2015 at 15:18:24 UTC, Gary Willoughby
wrote:
What is this function call operator? (...) Where can i learn
more about it?
It is the () at the end of a thing. You can overload it in a
struct by writing an
On Thursday, 27 August 2015 at 10:49:02 UTC, John Burton wrote:
Thanks again for the updates. I've experimented some more and
believe I understand.
To be honest I'm finding it very hard to find the right idioms
in D for safe and efficient programming when I'm so used to C++
/ RAII
On Thursday, 27 August 2015 at 09:38:52 UTC, Andrew Brown wrote:
On Thursday, 27 August 2015 at 09:26:55 UTC, rumbu wrote:
On Thursday, 27 August 2015 at 09:00:02 UTC, Andrew Brown
wrote:
Hi,
I need to read a binary file, and then process it two bits at
a time. But I'm a little stuck on the
On Wednesday, 26 August 2015 at 12:14:54 UTC, John Burton wrote:
This would be undefined behavior in c++ due to aliasing rules
on pointers. It appears to work reliably in D when I try it,
but that's obviously no guarantee that it's correct or will
continue to do so.
Is this correct code in
On Sunday, 23 August 2015 at 17:58:44 UTC, Doolan wrote:
...
Read this for a nice introduction:
http://ddili.org/ders/d.en/ranges.html
Then watch this: https://www.youtube.com/watch?v=A8Btr8TPJ8c
On Monday, 3 February 2014 at 19:47:56 UTC, Dicebot wrote:
On Monday, 3 February 2014 at 19:35:47 UTC, Andre wrote:
Btw. having std.decimal in the library would be really nice;)
Kind regards
André
There is a proposal in Phobos review queue
(http://wiki.dlang.org/Review_Queue) but its author
On Monday, 3 August 2015 at 22:42:15 UTC, SirNickolas wrote:
Hello! I'm new in D and it is amazing!
Can you tell me please if it is discouraged or deprecated to
call a function by just putting its name, without brackets?
It's quite unusual for me (used C++ and Python before), but I
can see
On Sunday, 2 August 2015 at 17:55:16 UTC, Xinok wrote:
is there a trait in D or Phobos which will tell you if a type
can be used as a key for an associative array? For example,
where T is some type:
static assert(isKeyType!T)
int[T] hashTable = ...
import std.stdio;
enum
On Monday, 27 July 2015 at 08:00:10 UTC, Marc Schütz wrote:
On Sunday, 26 July 2015 at 18:07:51 UTC, Gary Willoughby wrote:
In the description for Fiber in std.thread is the following[1]:
Please note that there is no requirement that a fiber be
bound to one specific thread. Rather, fibers may
On Saturday, 25 July 2015 at 17:43:44 UTC, Martin Nowak wrote:
On Saturday, 25 July 2015 at 17:34:26 UTC, Márcio Martins wrote:
What I want is a clean non-intrusive way to log when a
collection happened, how long my threads were stopped, how
much total memory and how many blocks were
In the description for Fiber in std.thread is the following[1]:
Please note that there is no requirement that a fiber be bound
to one specific thread. Rather, fibers may be freely passed
between threads so long as they are not currently executing.
How would this be accomplished and are there
On Sunday, 26 July 2015 at 19:51:08 UTC, Ali Çehreli wrote:
On 07/26/2015 11:07 AM, Gary Willoughby wrote: In the
Thanks for the example. I'll study it.
On Wednesday, 22 July 2015 at 04:29:26 UTC, Taylor Gronka wrote:
Hi,
I have a template function, and I want it to do something if
the input variable is a list of structs, and something else if
the input is a struct.
[...]
Take a look at this thread, the poster had the same question:
On Tuesday, 21 July 2015 at 17:23:30 UTC, ddos wrote:
How do i sanitize a string for database query?
Is there some builtin function?
thx :)
Use prepared statements instead.
https://en.wikipedia.org/wiki/Prepared_statement
On Tuesday, 21 July 2015 at 18:55:53 UTC, ddos wrote:
On Tuesday, 21 July 2015 at 17:58:55 UTC, Gary Willoughby wrote:
On Tuesday, 21 July 2015 at 17:23:30 UTC, ddos wrote:
How do i sanitize a string for database query?
Is there some builtin function?
thx :)
Use prepared statements instead.
On Wednesday, 15 July 2015 at 21:57:50 UTC, badlink wrote:
Hello, I can't figure how to write a template function that
accept either strings or array of strings.
This is my current code:
bool hasItemParent(T)(const(char)[] itemId, const(T)[] parentId)
if (is(typeof(T) == char) || (isArray!T
Also checkout inout functions:
http://dlang.org/function.html#inout-functions
Why does the following code fail to compile if the
`writeln(value);` line is present?
public template ForeachAggregate(T)
{
alias ForeachAggregate = int delegate(ref T) nothrow;
}
unittest
{
import std.stdio;
class Foo
{
private string[] _data =
On Sunday, 12 July 2015 at 17:33:50 UTC, anonymous wrote:
On Sunday, 12 July 2015 at 17:25:17 UTC, Gary Willoughby wrote:
Why does the following code fail to compile if the
`writeln(value);` line is present?
The error message (formatted to be a little more readable):
Error: function
On Wednesday, 8 July 2015 at 07:30:51 UTC, Sergey wrote:
Hello!
I try to use KXML and I need very simple: check an entire XML
document for well-formedness. How is it better to do?
Thanks in advance.
Maybe use the command line:
$ sudo apt-get install libxml2
$ xmllint --schema schema.xsd
On Tuesday, 7 July 2015 at 09:35:12 UTC, Jonathan M Davis wrote:
This is why you almost never use @trusted on templated
functions. You should
_never_ mark anything with @trusted unless you can guarantee
that it's
actually @safe. @safe is inferred for templated functions, so
unless you're
doing
How do you correctly implement a bidirectional range on a linked
list?
I have a linked list implementation and I've added a range
interface to it but after a while I've realized it not quite
right. The problem is when I call the save method of the forward
range interface I don't get a copy I
On Thursday, 2 July 2015 at 06:33:42 UTC, armando sano wrote:
I could never get this working. Have you got an example of
your compiler command.
In case that's still helpful after a couple of years...:
dmd path1/to/source.d path2/to/source.d -o- -D
-Ddpath/to/doc -op
generates
On Wednesday, 1 July 2015 at 19:45:04 UTC, Paul wrote:
I can't see how they answer the questions I've asked.
Let me see.
On Tuesday, 30 June 2015 at 12:58:21 UTC, Paul wrote:
I downloaded the archive from
https://github.com/nomad-software/tkd and files are same as in
the git repo. Tcl/tk is
On Thursday, 2 July 2015 at 18:34:13 UTC, Paul wrote:
On Thursday, 2 July 2015 at 17:41:45 UTC, Gary Willoughby wrote:
This is exactly why you use dub, so you don't have to worry
about all this!
You're right, there's sufficient information there if using dub.
Please read that page again.
On Tuesday, 30 June 2015 at 12:58:21 UTC, Paul wrote:
...
I really don't understand posts like this when literally all
information needed is in the README file:
https://github.com/nomad-software/tkd
Just read RTFM.
On Monday, 29 June 2015 at 19:29:37 UTC, sigod wrote:
Hi, everyone.
```
import std.typecons : Nullable;
class Test {}
Nullable!Test test;
assert(test.isNull);
```
Why does `Nullable` allowed to be used with reference types
(e.g. classes)?
P.S. I have experience with C#, where `NullableT`
On Monday, 29 June 2015 at 20:12:12 UTC, Assembly wrote:
I believe it's a design choice, if so, could someone explain
why? is immutable better than C#'s readonly so that the
readonly keyword isn't even needed? for example, I'd like to
declare a member as readonly but I can't do it directly
On Sunday, 7 June 2015 at 15:17:27 UTC, 1967 wrote:
I've got a template that takes in a type. Sometimes the type is
a class, sometimes a struct, sometimes just an int. It doesn't
much matter what it is, but if it's a reference type I need to
check if it's null so I can make it not null before
On Sunday, 14 June 2015 at 12:53:43 UTC, rcorre wrote:
Is there a good reference for the current state of @property?
I know it was hotly debated for awhile (and maybe still is?).
I'm just never sure when I should be using it (if at all).
Oh yes:
On Thursday, 21 May 2015 at 18:26:28 UTC, Dennis Ritchie wrote:
elif instead of else if:
http://rextester.com/WOSH30608
The parallel exchange values:
http://rextester.com/TPUD51604
wow!
On Sunday, 17 May 2015 at 18:58:32 UTC, Namespace wrote:
http://dlang.org/operatoroverloading.html#function-call
Like this:
module main;
import std.stdio;
class F
{
int opCall(int value)
{
return value * 2;
}
}
void main(string[] args)
{
auto
On Sunday, 17 May 2015 at 09:25:33 UTC, Namespace wrote:
Is this error an ICE? I think so, because I see the internal
filename, but I'm not sure.
Error: e2ir: cannot cast malloc(length * 8u) of type void* to
type char[]
Have you got a code sample to reproduce this?
On Friday, 15 May 2015 at 07:51:29 UTC, thedeemon wrote:
On Saturday, 2 May 2015 at 02:51:52 UTC, Fyodor Ustinov wrote:
Simple code:
http://pastebin.com/raw.php?i=7jVeMFXQ
What I'm doing wrong?
Try using class instead of struct.
Last time I played with std.concurrency it used Variants to
On Wednesday, 29 April 2015 at 06:37:44 UTC, ketmar wrote:
subj. the code:
void main () {
import std.stdio;
char ch = '!';
switch (ch) {
int n = 42;
case '!': writeln(n, : wow!); break;
default:
}
}
i think that such abomination should:
1. be forbidden,
After reading the following thread:
http://forum.dlang.org/thread/nczgumcdfystcjqyb...@forum.dlang.org
I wondered if it was possible to write a classic fizzbuzz[1]
example using a UFCS chain? I've tried and failed.
[1]: http://en.wikipedia.org/wiki/Fizz_buzz
On Sunday, 19 April 2015 at 21:26:11 UTC, Vladimir Panteleev
wrote:
On Sunday, 19 April 2015 at 16:20:23 UTC, Gary Willoughby wrote:
If i pass the correct information on the command line it gets
past the library errors but now shows linker errors.
I'm not seeing the compilation errors when
On Monday, 20 April 2015 at 18:14:34 UTC, Robert M. Münch wrote:
Hi, is there anything for D that supports generating tags files
like ctags does for C etc. ?
I and some others have merged D support into the following fork
of exuberant-ctags:
https://github.com/fishman/ctags
This is the
On Saturday, 18 April 2015 at 17:15:40 UTC, Gary Willoughby wrote:
Any ideas why i'm getting these linker errors?
This seems to be because i wasn't correctly specifying the newly
generated phobos lib in the dmd.conf.
On Sunday, 19 April 2015 at 16:21:45 UTC, Jacob Carlborg wrote:
Do you have libcurl installed?
Yeah and i've looked at the build scripts etc, and can't see
anything obviously wrong.
On Sunday, 19 April 2015 at 09:06:58 UTC, Jacob Carlborg wrote:
On 2015-04-19 10:56, Jacob Carlborg wrote:
The makefile isn't updated, see [1]. Trying adding
STABLE_DMD_VER=2.067.0 to the command you're running.
Pull request:
https://github.com/D-Programming-Language/dlang.org/pull/968
If
I've cloned the main repositories and i'm trying to get
everything building successfully. DMD, druntime and phobos all
built without a hitch. When building the tools however i'm
getting a lot of warnings from new compiler features (which is to
be expected i guess) but i'm also getting linker
I'm trying to build the website from git master and i'm getting
some errors. Here is the last part of the output:
...
touch ../dub-0.9.22/.cloned
mkdir -p /tmp/.stable_dmd-2.066.1
TMPFILE=$(mktemp deleteme.) curl -fsSL
http://downloads.dlang.org/releases/2014/dmd.2.066.1.linux.zip
On Sunday, 5 April 2015 at 21:23:14 UTC, Dennis Ritchie wrote:
Hi,
Can you please tell how to make map worked correctly. I want to
program published [2, 3, 4, 5, 6].
-
import std.stdio;
import std.algorithm;
string print(string s)
{
return `writeln(` ~ s ~ `);`;
}
void main()
{
On Friday, 3 April 2015 at 22:08:52 UTC, Kitt wrote:
Thanks for the help =) I guess I've been in C# land at work for
way too long now, my low level C skills are evaporating!
I've written a straight forward linked list implementation here:
On Wednesday, 1 April 2015 at 18:26:49 UTC, Charles Hixson wrote:
Perhaps BTree needs to be a class? I made it a struct because
I want it to definitely close properly when it
goes out of scope.
Maybe `scoped` can help:
http://dlang.org/phobos/std_typecons.html#.scoped
On Friday, 20 March 2015 at 14:25:22 UTC, ref2401 wrote:
Why aren't methods of class final by default?
See: http://forum.dlang.org/thread/lfqoan$5qq$1...@digitalmars.com
On Monday, 16 March 2015 at 13:33:55 UTC, Robert burner Schadek
wrote:
... from all Unicode characters in an idiomatic D way?
(std.interal.unicode_*)
```
T genUnicodeString(T)(size_t minChars, size_t maxChars)
if(isSomeString!T) {
...
}
```
I guess it depends on the encoding?
Some
On Thursday, 19 February 2015 at 11:56:19 UTC, Nordlöw wrote:
I can understand how to correctly define an instance of
BinaryHeap in my class DijkstraWalker at
https://github.com/nordlow/justd/blob/master/knet/traversal.d#L264
because the comparsion function can't ge access to the class
On Wednesday, 18 February 2015 at 08:19:25 UTC, Suliman wrote:
Now I am trying to learn how to build GUI apps in D. But I have
some troubles.
Read the README file in the repository. Then fully read the
documentation inside the `docs` folder. Then there is an example
application in
On Monday, 16 February 2015 at 23:49:31 UTC, 岩倉 澪 wrote:
I'm looking to manage my current project with dub, but there is
one problem that has been getting in my way. I want to use
`-rpath=$ORIGIN`, which I can pass with `-L-rpath=\$ORIGIN`
when directly invoking the compiler, but when putting
On Saturday, 14 February 2015 at 09:37:05 UTC, Jack Applegame
wrote:
I wrote this function for comparing two floating point values:
import std.math;
import std.traits;
bool isEqual(T)(T v1, T v2) if(isFloatingPoint!T) {
return T.mant_dig - feqrel(v1, v2) 2;
}
What do you think about it?
On Saturday, 14 February 2015 at 12:24:51 UTC, ketmar wrote:
On Sat, 14 Feb 2015 11:29:28 +, Jack Applegame wrote:
why std.conv.to is not pure?
string foo(real v) pure { return v.to!string; }
// Error: pure function 'foo' cannot call impure function
'std.conv.to!string.to!(real).to'
On Friday, 13 February 2015 at 09:38:04 UTC, Dennis Ritchie wrote:
This is a bug?
import std.stdio;
void main() {
int a = 0;
writeln( (a 10) ? a = 1 : a = 2 );// prints 2
writeln( (a 10) ? a = 1 : (a = 2) ); // prints 1
}
Even C++ output:
1
1
Maybe a similar issue as
On Thursday, 22 January 2015 at 11:23:49 UTC, Nordlöw wrote:
What is the meaning of selectors such as
`a[href]`
used in
doc.querySelectorAll(`a[href]`)
?
Select all `a` tags that have a `href` attribute.
You can also select using the attribute value too. For example
get all the
On Wednesday, 7 January 2015 at 16:38:25 UTC, Suliman wrote:
I need to construct complex SQL request, like:
string sql = (INSERT INTO test.geomagnetic (`date`,
`a_fredericksburg`, `fredericksburg`, `a_college`, `college`,
`a_planetary`, `planetary`) VALUES ('%s', '%s', '%s', '%s',
'%s',
On Monday, 5 January 2015 at 11:49:32 UTC, Bauss wrote:
Is it possible to compile for other OS's on Windows using dmd?
This is what's known as cross compiling and is not currently
supported by DMD at this time.
On Monday, 5 January 2015 at 10:27:06 UTC, Laeeth Isharc wrote:
Hi.
I am building an example for hibernated (I put a main around
the sample code extract from the website).
How do I stop dub trying to build a vibed project?
Here is my dub.json
{
name: ddbc example,
description:
On Wednesday, 31 December 2014 at 11:19:36 UTC, Laeeth Isharc
wrote:
Argh - no way to edit.
What's best practice here?
D strings are not null-terminated.
===
cpling.c
char* cpling(char *s)
{
s[0]='!';
return s;
}
===
dcaller.d
extern(C) char* cpling(char* s);
void callC()
{
I was just taking a look at the following poll[1] about the order
of evaluation when using the post-increment operator. The
following D snippet shows an example.
import std.stdio;
void main(string[] args)
{
auto foo = [0, 0];
int i = 0;
On Friday, 26 December 2014 at 07:46:03 UTC, Jack wrote:
On Friday, 26 December 2014 at 07:23:34 UTC, Rikki Cattermole
wrote:
On 26/12/2014 6:58 p.m., Jack wrote:
Complete error code here: http://codepad.org/KcW7jhXl
Apparently, there exists an incompatibility.
Take note, I just listed tkd as
On Saturday, 13 December 2014 at 16:34:42 UTC, aldanor wrote:
I'm writing bindings to a rather big C library where the return
values of almost all functions indicate the possibility of an
error (exception).
Assuming there's a C header, foo.h with functions f1, f2,
etc, I want to have a
On Saturday, 13 December 2014 at 19:03:42 UTC, aldanor wrote:
Let's say there's a foo.d that contains raw bindings to
foo.h (enums, structs, extern variables, function
declarations, a whole load of stuff) -- everything but the
functions is already fine but all functions need to be wrapped.
On Tuesday, 9 December 2014 at 01:17:47 UTC, anonymous wrote:
Looks like a compiler bug.
Filed: https://issues.dlang.org/show_bug.cgi?id=13843
How do i successfully use std.functional.binaryFun in the
following example?
import std.stdio;
import std.functional;
class Foo(T, alias greater = a b) if
(is(typeof(binaryFun!(greater)(T.init, T.init)) == bool))
{
private alias compare = binaryFun!(greater);
public this()
How can i check that a type is a struct at compile time? I know i
can test for a class like this:
static if(is(T == class))
{
...
}
But how to do the same thing for a struct?
On Tuesday, 2 December 2014 at 17:15:28 UTC, Mayuresh Kathe wrote:
Okay, if that is the case, I'll dive into Mr. Alexandrescu's
book as soon as I get my copy.
No need to wait that long. I second H.S. Teoh's suggestion to
recommend reading this book too:
http://ddili.org/ders/d.en/intro.html
On Thursday, 27 November 2014 at 09:33:49 UTC, Chris wrote:
I usually use dub to create and build projects. I built one of
the projects with dub and then by hand with dmd[1] passing all
the files etc. Turned out that the executable built with dub
was 1.4 MB whereas the one built by hand was
On Wednesday, 19 November 2014 at 23:44:00 UTC, univacc wrote:
Hello,
I am using TKd to dray my linux/windows app which works very
good!
I would like to add a global Hotkey to my program via the Win32
API function RegisterGlobalHotkey.
Is there a possibility to access Tk's event loop so
On Saturday, 15 November 2014 at 00:33:02 UTC, Neven wrote:
On Friday, 14 November 2014 at 16:45:45 UTC, Sean Kelly wrote:
Sounds like a module that should be in core.sys.linux. Care
to submit a pull request?
Ok, I've tried to make a module, though since I'm a D beginner
(also a student who
On Saturday, 15 November 2014 at 00:33:02 UTC, Neven wrote:
Ok, I've tried to make a module, though since I'm a D beginner
(also a student who fiddles with D for Operating system classes)
Incidentally, where are you studying? It would be nice to know
where D is being taught.
On Friday, 14 November 2014 at 16:45:45 UTC, Sean Kelly wrote:
Sounds like a module that should be in core.sys.linux. Care to
submit a pull request?
Yes, these are usually added when someone requires them.
Neven, if you're able, submitting a pull request to druntime of
the complete module
On Sunday, 9 November 2014 at 08:26:59 UTC, Suliman wrote:
I know that a lot of people are using for programming tools
like Sublime. I am one of them. But if for very simple code
it's ok, how to write hard code?
Do you often need debugger when you are writing code? For which
tasks debugger
On Saturday, 8 November 2014 at 12:23:45 UTC, Nicolas Sicard
wrote:
I would like to register a D delegate to a C API that takes a
function pointer as a callback and a void* pointer to pass data
to this callback.
My solution is in http://dpaste.dzfl.pl/7d9b504b4b965.
Is this code correct? Is
On Tuesday, 4 November 2014 at 23:09:33 UTC, Jack wrote:
So there must be an incompatibility with the video subsystem
and tcl/tk.
So it seems. Thank you very much for helping me.
You were a big help.
Sorry i can't do more. I'm the author of Tkd and would like to
get to the bottom of it.
On Wednesday, 5 November 2014 at 14:04:26 UTC, MadProgressor
wrote:
The scope(failure) is translated to a try catch after the
satement you wann monitor.
So put it before
That shouldn't matter. See: http://dlang.org/exception-safe.html
101 - 200 of 291 matches
Mail list logo