In the following snippet is the line marked WOAH legal? The
compiler doesn't complain about the trailing comma in the
constructor arguments.
import std.stdio;
class Foo
{
public this(string foo)
{
}
}
void main(string[] args)
{
auto foo = new Foo(bar, ); // --
Based on this conversation in another thread:
http://forum.dlang.org/thread/wdddgiowaidcojbrk...@forum.dlang.org?page=5#post-yjmrqgesjtadecutvkye:40forum.dlang.org
I've realised i may have a nasty bug lurking in the code. Now i
want to completely understand what is happening.
Take the
On Monday, 12 May 2014 at 19:13:28 UTC, Kagamin wrote:
AFAIK, addRoot is for memory allocated in GC heap, and addRange
is for other types of memory, so you can't add non-gc memory as
root (just a guess, see docs). I would allocate whole Args in
GC heap and add is as root, yes, it would prevent
On Monday, 12 May 2014 at 20:03:46 UTC, Kagamin wrote:
Why many? I'd say, you typically have 0 subscriptions (label,
textbox) per widget, seldom - 1 (button, combobox, checkbox).
There are many events that can be bound to on any widget.
On Tuesday, 13 May 2014 at 06:27:14 UTC, Kagamin wrote:
Do you always bind all of them?
They are not bound automatically but may be bound later. You can
bind to events such as mouse-enter, mouse-click, keypresses, etc.
In fact this is how keyboard shortcuts are handled.
I've added a
On Tuesday, 13 May 2014 at 20:42:11 UTC, jack death wrote:
It would be cool if somebody will handle developing of DFL.
It's
better to have one such toolkit, than tons of complex and not
finished toolkits.
Tkd is finished.
Gtk-D is finished.
You aren't going to get very far unless you
On Wednesday, 14 May 2014 at 07:11:45 UTC, Kagamin wrote:
It must be scanned, so you shouldn't specify NO_SCAN attribute,
it's for memory blocks, which are guaranteed to not hold
pointers to GC memory, like ubyte[] buffers for i/o, so managed
blocks can be safely collected without looking at
On Wednesday, 14 May 2014 at 17:08:21 UTC, Joakim wrote:
Hi,
Quick question regarding TKD (tkinter):
Is there a way to set focus on the application window
automatically on run? I'm on Mac OS X if that's of any
importance.
I have tried to grep the documentation but I can't find
anything
On Wednesday, 14 May 2014 at 21:41:04 UTC, DaveG wrote:
Hopefully better formatting of code here:
import tkd.tkdapplication;
class Application : TkdApplication
{
private void exitCommand(CommandArgs args)
{
this.exit();
}
private void saveMeCommand(CommandArgs args)
On Wednesday, 14 May 2014 at 21:23:02 UTC, DaveG wrote:
tkd\window\window.d(426): Error: undefined identifier
CommandCallback
Added the missing import and now all works fine. Fixed in
v1.0.5-beta. Any more issues open them up in github and i'll deal
with them there. :)
On Thursday, 15 May 2014 at 19:02:58 UTC, Mengu wrote:
On Thursday, 15 May 2014 at 17:30:22 UTC, Gary Willoughby wrote:
On Wednesday, 14 May 2014 at 21:23:02 UTC, DaveG wrote:
tkd\window\window.d(426): Error: undefined identifier
CommandCallback
Added the missing import and now all works
On Thursday, 15 May 2014 at 22:25:47 UTC, Tom Browder via
Digitalmars-d-learn wrote:
I am a volunteer developer with the well-known 3D CAD FOSS
project BRL-CAD:
http://brlcad.org
I have wanted to use D for a long time but I hadn't taken the
plunge.
Yesterday I advertised to the BRL-CAD
On Friday, 16 May 2014 at 20:28:31 UTC, Tom Browder via
Digitalmars-d-learn wrote:
On Fri, May 16, 2014 at 2:31 PM, Gary Willoughby via
Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote:
On Friday, 16 May 2014 at 19:17:05 UTC, Dicebot wrote:
Using .di is more idiomatic as those
On Thursday, 22 May 2014 at 15:39:36 UTC, David wrote:
Hey, I'm really new to D, and pretty new to programming overall
too,
But I want to make a 3d Game, (just sth. small). I really like
D and want to do it in D, but in the Internet there is no shit
about programming a game in D ^^
Is there
On Sunday, 25 May 2014 at 09:37:46 UTC, Derix wrote:
Hello everyone,
So I'm Getting Started With Gtkd [1] and the tuto includes
this
piece of code :
...
DrawingArea da = new DrawingArea(590, 200);
da.addOnDraw(onDraw);
layout.put(da, 5, 30);
add(layout); // Add
On Sunday, 25 May 2014 at 15:07:56 UTC, DLearner wrote:
Does the current D specification differ from that used in the
book (and, if it does, is there a link to the changes)?
http://erdani.com/tdpl/errata/
I have a couple of functions that you may find useful for
comparing floats.
https://github.com/nomad-software/dunit/blob/master/source/dunit/toolkit.d#L42
https://github.com/nomad-software/dunit/blob/master/source/dunit/toolkit.d#L134
On Wednesday, 18 June 2014 at 20:55:36 UTC, cym13 wrote:
Hello,
I see a lot of functions and other stuff with a '!' in the name
such as 'bitfields!' or 'ctRegex!'. What does it mean exactly?
I think this will be helpful:
http://nomad.so/2013/07/templates-in-d-explained/
On Thursday, 19 June 2014 at 17:45:56 UTC, FreeSlave wrote:
Dub has option called --annotate. It's described like this:
Do not perform any action, just print what would be done
I supposed it's something similar to -n option of Jam build
system (I really like this feature). But dub's annotate
I've created a simple stack type using calloc/free which seems to
work nicely. Then instead of using C functions i've tried to
implement the same type using the GC. However i'm experiencing a
crash. I've been staring at this snippet for hours now any help
would be appreciated. This is a
On Saturday, 12 July 2014 at 17:11:00 UTC, Rainer Schuetze wrote:
On 12.07.2014 19:05, Rainer Schuetze wrote:
Thanks for the reduction. GC.realloc seems broken for
reallocations to
sizes larger than the current GC pool.
Please file a bug report.
Actually done that myself:
On Saturday, 12 July 2014 at 19:01:56 UTC, Danyal Zia wrote:
Hi,
I noticed that in Andrei's talks and his book, he used braces
on the same line of delcaration, however Phobos and other D
libraries I know use braces on their own line. Now I'm in a
position where I need to take decision on
On Monday, 14 July 2014 at 14:45:01 UTC, Frustrated wrote:
Is there a way to take an interface and implement it
generically? e.g., All functions are implemented either as
throw and/or return defaults and properties are implemented as
getter/setters.
This is for mocking up so I a simple way
There's some handy refection stuff in there too:
https://github.com/nomad-software/dunit/blob/master/source/dunit/reflection.d
On Sunday, 20 July 2014 at 16:35:52 UTC, Eric wrote:
There are a lot of discussions in the forums about how @property
should or could be implemented. But I can't seem to find
anything
that explains why or when I should use @property with the
current
compiler. Can anyone explain why and when
I was reading Ali's book (http://ddili.org/ders/d.en/index.html)
and saw this piece of code on how to get the true size of an
object:
MyClass* buffer =
cast(MyClass*)GC.calloc(__traits(classInstanceSize, MyClass) *
10);
That got me thinking, how would i actually 'fill' this memory
with
On Monday, 18 February 2013 at 03:28:59 UTC, eGust wrote:
I need to locate the directory of current executable file, but
I can't find how to do that in Phobos. I tried
core.runtime.Runtime.args[0], but failed. Is there a standard
method of Phobos to do that? I only know the way of Windows
What is the preferred format people here use for program config
files? Json, Xml, ini, etc?
Also what libraries exist to parse the preferred format?
On Sunday, 3 August 2014 at 09:31:20 UTC, Marc Schütz wrote:
On Saturday, 2 August 2014 at 12:42:00 UTC, Gary Willoughby
wrote:
What is the preferred format people here use for program
config files? Json, Xml, ini, etc?
JSON is nice for data exchange, but I dislike it for
configuration. It
On Sunday, 3 August 2014 at 11:38:47 UTC, John Colvin wrote:
On Sunday, 3 August 2014 at 10:54:10 UTC, Gary Willoughby wrote:
On Sunday, 3 August 2014 at 09:31:20 UTC, Marc Schütz wrote:
On Saturday, 2 August 2014 at 12:42:00 UTC, Gary Willoughby
wrote:
What is the preferred format people here
On Tuesday, 5 August 2014 at 07:29:46 UTC, nikki wrote:
edit : btw, I understand how to build an app that conscists out
of a few source files, I'd just do 'dmd file1.d file2.d' I
amtalking here about the situation where that's unpractical
because of the amount and folder structure.
You can
On Tuesday, 5 August 2014 at 08:06:57 UTC, nikki wrote:
edit: couldn't find that flag in dmd --help (only -Ipath),
atleast I know what it does now, hope I'll remember..
thanks a lot though @ great helpful community
Remember rdmd is just a program to help collect and organise
parameters. It
On Wednesday, 6 August 2014 at 18:33:23 UTC, Dicebot wrote:
Most voted DMD bug :
https://issues.dlang.org/show_bug.cgi?id=314
Yeah this is a famous bug that seems to catch everyone out at
some stage.
What hashing algorithm is used for the D implementation of
associative arrays? Where in the D source does the AA code live?
Just for a bit a fun i've implemented a simple doubly linked list
and trying out some range based stuff. Whilst doing so i have
some questions which you guys might be able to answer.
1. In your opinion when accessing the elements of a linked list
should they yield the data stored within the
On Monday, 11 August 2014 at 18:20:51 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
If you make your linked list container the same thing as a
range over it, then iterating over the range will empty the
container as
well, which generally isn't what you want.
Yes but only if it's been
On Monday, 11 August 2014 at 20:02:38 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
On Mon, Aug 11, 2014 at 07:35:04PM +, Gary Willoughby via
Digitalmars-d-learn wrote:
On Monday, 11 August 2014 at 18:20:51 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
If you make your linked list
On Monday, 11 August 2014 at 20:02:38 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
opApplyReverse.
Was that a joke or does opApplyReverse exist?
On Tuesday, 12 August 2014 at 17:00:26 UTC, ketmar via
Digitalmars-d-learn wrote:
On Tue, 12 Aug 2014 16:50:33 +
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
Was that a joke or does opApplyReverse exist?
it's not a joke.
http://dlang.org/statement.html
On Monday, 11 August 2014 at 20:02:38 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
Anyway, clearly we're not understanding each other, so let me
present
some concrete code so that we aren't just talking past each
other:
I've used your advice and implemented a range over the list as
On Wednesday, 13 August 2014 at 18:58:59 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
On Wed, Aug 13, 2014 at 06:31:32PM +, Gary Willoughby via
Digitalmars-d-learn wrote:
On Monday, 11 August 2014 at 20:02:38 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
Anyway, clearly we're
On Wednesday, 13 August 2014 at 19:43:20 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
On Wed, Aug 13, 2014 at 07:37:09PM +, Gary Willoughby via
Digitalmars-d-learn wrote:
On Wednesday, 13 August 2014 at 18:58:59 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
On Wed, Aug 13, 2014 at 06:31
In the new D release there have been some changes regarding
built-in types.
http://dlang.org/changelog.html?2.066#array_and_aa_changes
I would like to learn why this has been done like this and why it
is desired to be free functions rather than properties?
On Tuesday, 19 August 2014 at 00:55:24 UTC, Idan Arye wrote:
On Tuesday, 19 August 2014 at 00:54:25 UTC, Idan Arye wrote:
On Monday, 18 August 2014 at 21:17:11 UTC, Jonathan M Davis
wrote:
On Monday, 18 August 2014 at 21:02:09 UTC, Gary Willoughby
wrote:
In the new D release there have been
On Friday, 22 August 2014 at 10:44:31 UTC, Marc Schütz wrote:
On Friday, 22 August 2014 at 08:44:51 UTC, Suliman wrote:
foreach (field; result.tupleof)
Why I should here specify type of iterable element, but not
first element that I use for iteration?
I mean:
foreach
On Saturday, 23 August 2014 at 16:28:46 UTC, novice2 wrote:
I have 2 reduced files, wich i can't compile with new (DMD
2.066) rdmd.exe under Windows 7 32-bit.
Command: rdmd --force --build-only aaa.d
Message Error 42: Symbol Undefined _D3etc3bbb3fooFZi
But command: dmd aaa.d etc\bbb.d
Compile
On Saturday, 23 August 2014 at 17:29:15 UTC, sigod wrote:
PR that introduced regression:
https://github.com/D-Programming-Language/tools/pull/108
Filed: https://issues.dlang.org/show_bug.cgi?id=13366
Compiling the following code:
import std.typecons;
class Foo
{
private int foo;
mixin Proxy!(foo);
this(int x)
{
this.foo = x;
}
}
void main()
On Monday, 25 August 2014 at 21:14:42 UTC, Ali Çehreli wrote:
On 08/25/2014 12:17 PM, Marc Schütz schue...@gmx.net wrote:
On Monday, 25 August 2014 at 19:12:48 UTC, Marc Schütz wrote:
On Monday, 25 August 2014 at 18:44:36 UTC, Ali Çehreli wrote:
It can be explained if the mixed-in template is
On Wednesday, 27 August 2014 at 13:49:48 UTC, Aerolite wrote:
Hey all,
I just read the wiki article on DIP64 -
http://wiki.dlang.org/DIP64
The discrepancy between the annotation-style attributes such as
'@safe', '@property', etc and the keyword attributes 'pure' and
'nothrow' has always really
This is something that has been on my mind since i discovered
this the other day. Does D provide automatic dereferencing for
accessing members through pointers?
Here's an example:
import core.stdc.stdlib : malloc, free;
struct Foo
{
public int bar;
}
void main(string[] args)
{
On Wednesday, 27 August 2014 at 19:36:08 UTC, Brian Schott wrote:
On Wednesday, 27 August 2014 at 19:25:42 UTC, Gary Willoughby
wrote:
Why don't you need to dereference the pointer 'foo' to reach
its member 'bar'?
The compiler inserts the dereference for you. (It knows which
types are
On Tuesday, 26 August 2014 at 20:41:47 UTC, Marc Schütz wrote:
On Tuesday, 26 August 2014 at 18:13:52 UTC, Gary Willoughby
wrote:
With that in mind what is strange is that if in my example you
change the class for a struct everything works as expected.
Why is that?
This is bizarre... I tried
On Thursday, 28 August 2014 at 16:23:48 UTC, anonymous wrote:
On Tuesday, 26 August 2014 at 18:13:52 UTC, Gary Willoughby
wrote:
With that in mind what is strange is that if in my example you
change the class for a struct everything works as expected.
Why is that?
That's because when not
On Sunday, 31 August 2014 at 09:02:55 UTC, JD wrote:
Last snippet works for me, dots get printed to the logfile as
expected.
Ok, it works now. Using the recommended _Exit() function with
DMD 2.066 on Linux.
Thanks you all for your help!
Best regards,
Jeroen
On a side note, i've created
On Monday, 1 September 2014 at 18:08:48 UTC, nikki wrote:
so I am still very new to structs and and * adress and
pointer stuff, I have this basic code :
struct S {
int value = 0;
}
void func(S thing){
writeln(thing); //BFC52B44
thing.value = 100;
}
On Monday, 1 September 2014 at 21:00:46 UTC, Nordlöw wrote:
Are there some nice traits or internals to query the current
call stack for address or perhaps even their (mangled) names.
I'm mostly interested in using this to detect infinite
recursions in my recursive descent parser. This provided
On Thursday, 4 September 2014 at 16:43:13 UTC, evilrat wrote:
how i can specify github repo branch? i've already tried
adding everything i have in mind but no luck so far.
so in theory it should be like this:
-- dub.json
dependencies: {
cairod: {version: ~ReworkWin32, path:
On Sunday, 7 September 2014 at 21:06:48 UTC, zuzuleinen wrote:
Hello,
First, here is my Linkedin profile
http://www.linkedin.com/in/andreiboar in order to make an image
of my professional background. I do realise here are really
good programmers for which this background might sound like a
On Monday, 8 September 2014 at 20:58:20 UTC, ketmar via
Digitalmars-d-learn wrote:
On Mon, 08 Sep 2014 20:47:19 +
AsmMan via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com
wrote:
Before go to D I recomend you to take a look at the C
programming language (as Gary Willoughby already
On Wednesday, 17 September 2014 at 12:08:51 UTC, Kagamin wrote:
Looks like an error from the compiler, non-ascii characters in
file path can affect it.
Try raising an issue here:
https://github.com/D-Programming-Language/dub/issues
How does GC.addRange work? i.e. what is it doing? I'm assuming
reading the docs that it adds a range for the GC to scan but what
actually happens? Does the GC look into this range and check for
the existence of pointers it's currently managing?
For example, if i nulled a pointer in the range
On Saturday, 20 September 2014 at 23:08:08 UTC, ketmar via
Digitalmars-d-learn wrote:
On Sat, 20 Sep 2014 22:21:13 +
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
So zeroing values will inform the GC the reference has gone?
yes.
Thanks, i just wanted
On Monday, 22 September 2014 at 20:44:25 UTC, Gary Willoughby
wrote:
Below is a change that results from re-generating my
documentation using ddoc. I wonder where the new u tags are
coming from that wrap the parent class name.
-div class=module-membersh2a name=Button/aclass
span
On Tuesday, 23 September 2014 at 10:54:35 UTC, Kagamin wrote:
On Monday, 22 September 2014 at 20:44:25 UTC, Gary Willoughby
wrote:
Is there a master ddoc file being read from somewhere?
https://github.com/D-Programming-Language/dmd/blob/master/src/doc.c#L132
Thanks! I'd bet my arse it's
A few questions regarding GC.malloc.
When requesting a chunk of memory from GC.malloc am i right in
assuming that this chunk is scanned for pointers to other GC
resources in order to make decisions whether to collect them or
not?
What does BlkAttr.FINALIZE do when used in the GC.malloc
On Friday, 26 September 2014 at 17:16:04 UTC, AsmMan wrote:
I know I can combine it by making an extra variable plus a
property like this:
class Foo
{
private int a_;
void do_something1()
{
a_ = baa();
}
void do_something2()
{
if(cond) a_ = baa2();
}
@property int
What is a sink delegate?
Discussed here:
http://forum.dlang.org/thread/m0bdgg$1t7j$1...@digitalmars.com?page=6#post-m0emvc:242av5:241:40digitalmars.com
On Thursday, 2 October 2014 at 17:56:29 UTC, AsmMan wrote:
I'd like to check if a function got CTFE, ie, the compiler was
able to replace my foo(s); by the computed value at
compile-time.
I'm trying to convert the binary executable to assembly by
using objconv tool but I'm finding it very
Say i have created a program written in D, what tools are
available for me to track memory allocations?
If you write a program and its performance is slow because you
suspect too many allocations are taking place in unrecognised
areas, what tools or techniques do you use to find where they
On Thursday, 2 October 2014 at 20:31:29 UTC, Kiith-Sa wrote:
On Thursday, 2 October 2014 at 20:16:56 UTC, Gary Willoughby
wrote:
Say i have created a program written in D, what tools are
available for me to track memory allocations?
If you write a program and its performance is slow because
Is there a current version of rdmd for gdc?
On Monday, 6 October 2014 at 21:24:56 UTC, AsmMan wrote:
Which practice do you use: if you need only one or two
functions from a module:
import myModule : func, func2;
or (import whole module, assuming no function name conflits of
course)
import myModule;
any words why one over the other
On Wednesday, 8 October 2014 at 03:33:38 UTC, Adam D. Ruppe wrote:
You could just wrap the write function in a try/catch to
explicitly ignore the error.
Or if the write function is there only for debug purposes you
could wrap it in a debug/version block.
I've been recently trying GDC out to compile some D code and i'm
running into the problem of differing function signatures in core
modules.
For example:
stack.d:79: error: function core.memory.GC.calloc (ulong sz, uint
ba = 0u) is not callable using argument types (ulong, BlkAttr,
On Sunday, 12 October 2014 at 19:34:30 UTC, Iain Buclaw wrote:
On Sunday, 12 October 2014 at 19:20:49 UTC, Gary Willoughby
wrote:
I've been recently trying GDC out to compile some D code and
i'm running into the problem of differing function signatures
in core modules.
For example:
On Friday, 17 October 2014 at 16:34:04 UTC, K.K. wrote:
I'm looking for suggestions for a GUI library, to create a
somewhat light GUI that can also be created without too much
fuss, and support for Windows Linux.
The GUI I'm looking to make would be one that is just one
window,
with support
On Sunday, 19 October 2014 at 01:11:39 UTC, Jeremy DeHaan wrote:
Although perhaps unnecessary, I added DDoc documentation to my
module for a short description of the body. This showed up in
the place I wanted it to be in when I built the html
documentation, so I was pretty happy. (below the
On Sunday, 19 October 2014 at 16:44:25 UTC, Jeremy DeHaan wrote:
The problem seems to be when I do something like this.
*blah.d*
///A module that contains blahblahblah.
module something.blah;
//Stuff goes here
What will end up happening is the generated html file turns out
like this:
html
On Sunday, 19 October 2014 at 17:43:51 UTC, Jeremy DeHaan wrote:
That's ok though. I can live with out it. I'll look through the
bugzilla site and see if I can find a bug report for this or
open up a new one.
On a side note, is there any way that I can redefine the DDOC
macro (or any other
On Monday, 20 October 2014 at 01:58:27 UTC, Jeremy DeHaan wrote:
Is there no way to specify one at compile time?
Also, if I were to set the DDoc file like you suggest, does it
look for one locally to dmd.conf/sc.ini or to the source code?
See here for full information:
On Thursday, 23 October 2014 at 00:59:26 UTC, Shriramana Sharma
via Digitalmars-d-
I submit that the syntax for attributes should be streamlined.
Shall I
go and open a Bugzilla item?
No need: http://wiki.dlang.org/DIP64
On Friday, 24 October 2014 at 15:06:25 UTC, Ola Fosheim Grøstad
wrote:
I agree that @-stuff is trivial, but I don't think Python
sets a good example. The codebase is basically divided in two,
libraries have to support both, and I think they should have
changed more if going to the trouble.
On Tuesday, 28 October 2014 at 00:51:17 UTC, Jonathan M Davis via
Digitalmars-d-learn
The
thing that's been done in Phobos in this type of situation is
to put an
underscore on the end of the keyword, so you'd get
enum CrudOps { read, write, delete_ }
and while that may not be what you want,
On Sunday, 2 November 2014 at 12:11:23 UTC, Jack wrote:
Whole error is: http://codepad.org/C2l4rUel
That's not the true error. That's dub throwing an exception when
trying to run the built executable. As shown here:
On Sunday, 2 November 2014 at 23:05:05 UTC, Jack wrote:
On Sunday, 2 November 2014 at 17:39:46 UTC, Gary Willoughby
wrote:
On Sunday, 2 November 2014 at 12:11:23 UTC, Jack wrote:
Whole error is: http://codepad.org/C2l4rUel
That's not the true error. That's dub throwing an exception
when
On Monday, 3 November 2014 at 19:47:17 UTC, Ivan Kazmenko wrote:
So, if there is an idiomatic way to read the whole file into a
string which is Unicode-compatible, it would be great to learn
that, too.
Maybe something like this:
import std.stdio;
import std.array;
import std.conv;
string
On Monday, 3 November 2014 at 22:26:14 UTC, Jack wrote:
I'll try and think about this for a while
Thanks for the help sir.
No worries. I don't really know what else to suggest without
seeing a little code. Do you have a simple full program that
shows the error happening?
On Tuesday, 4 November 2014 at 10:34:19 UTC, Jack wrote:
No worries. I don't really know what else to suggest without
seeing a little code. Do you have a simple full program that
shows the error happening?
Here's the main file:
http://codepad.org/hu4r0ExB
and Here's the module:
On Tuesday, 4 November 2014 at 18:22:49 UTC, Gary Willoughby
wrote:
On Tuesday, 4 November 2014 at 10:34:19 UTC, Jack wrote:
No worries. I don't really know what else to suggest without
seeing a little code. Do you have a simple full program that
shows the error happening?
Here's the main
On Tuesday, 4 November 2014 at 10:34:19 UTC, Jack wrote:
Here's the main file:
http://codepad.org/hu4r0ExB
and Here's the module:
http://codepad.org/ikXAzfdg
Dependencies are DerelictSDL and Tkd.
It's the most simple one I got that reproduces the error.
If you change the way SDL 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
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 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 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 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 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 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
1 - 100 of 291 matches
Mail list logo