Re: DConf 2013 on twitter

2013-04-30 Thread Gary Willoughby
On Tuesday, 30 April 2013 at 01:57:29 UTC, Ali Çehreli wrote: On 04/29/2013 06:44 PM, Diggory wrote: Just curious if there were any plans to put videos/slideshows from the presentations online after the conference? Yes, that's the plan. Ali Awesome! I really can't wait to watch these.

Re: DConf 2013 official car/room sharing thread

2013-04-30 Thread Manu
Bloody phone... On 29 Apr 2013 19:01, Iain Buclaw ibuc...@ubuntu.com wrote: double post On 29 April 2013 18:57, Manu turkey...@gmail.com wrote: Haha, how do you intend to have a cooler-than-the-aloft club meetup there, when it's being presented by a cool aloft-er? ;) On 29 Apr 2013 16:35,

Re: Formal Review of std.uni

2013-04-30 Thread Dmitry Olshansky
30-Apr-2013 04:12, Jonathan M Davis пишет: On Tuesday, April 30, 2013 03:02:17 Dmitry Olshansky wrote: 29-Apr-2013 22:50, Jonathan M Davis пишет: On Monday, April 29, 2013 22:13:09 Dmitry Olshansky wrote: Technically these should be in std.string and are there but incorrect. Then fix them

Re: 1 matches bool, 2 matches long

2013-04-30 Thread Steven Schveighoffer
On Mon, 29 Apr 2013 11:39:27 -0700, Walter Bright newshou...@digitalmars.com wrote: On 4/29/2013 10:10 AM, Steven Schveighoffer wrote: I think you are inventing a strawman problem that this bug solves. There is no need for a Better scheme, partial ordering works great, and so do true

Re: GDB support for multithreaded D application debugging

2013-04-30 Thread David
Am 29.04.2013 15:55, schrieb d coder: Greetings I just wanted to find out how good is the GDB support for debugging multithreaded code written in D language. I remember trying it sometimes back, but could not get it to work. Any suggestions? Regards - Puneet I think GDB 7.5 is fully

Re: trusted purity?

2013-04-30 Thread Walter Bright
On 4/29/2013 10:42 PM, monarch_dodra wrote: Thanks. That (kinda) worked. I just had to add an alias, because the compiler was complaining about: Error: fp_pure_t is used as a type Yeah, I should have tested it before posting!

Re: 1 matches bool, 2 matches long

2013-04-30 Thread Rob T
On Tuesday, 30 April 2013 at 14:47:14 UTC, Steven Schveighoffer wrote: Yes, just like it's better matching to long than string. -Steve More precise language is to state that there is no better match and long should simply not ever match with bool because long is not the same thing as bool,

Re: trusted purity?

2013-04-30 Thread monarch_dodra
On Tuesday, 30 April 2013 at 17:06:00 UTC, Walter Bright wrote: On 4/29/2013 10:42 PM, monarch_dodra wrote: Thanks. That (kinda) worked. I just had to add an alias, because the compiler was complaining about: Error: fp_pure_t is used as a type Yeah, I should have tested it before posting!

Re: 1 matches bool, 2 matches long

2013-04-30 Thread Steven Schveighoffer
On Tue, 30 Apr 2013 10:43:01 -0700, Rob T al...@ucora.com wrote: On Tuesday, 30 April 2013 at 14:47:14 UTC, Steven Schveighoffer wrote: Yes, just like it's better matching to long than string. -Steve More precise language is to state that there is no better match and long should simply

Re: clear() causes crash?

2013-04-30 Thread Luís.Marques
On Monday, 29 April 2013 at 21:58:46 UTC, Jonathan M Davis wrote: zeroes out the vtbl Hmm, I was expecting that DMD, at least in -release mode, optimize foo() to a direct call, since there's no inheritance.

Re: clear() causes crash?

2013-04-30 Thread Dicebot
On Tuesday, 30 April 2013 at 18:54:45 UTC, Luís Marques wrote: On Monday, 29 April 2013 at 21:58:46 UTC, Jonathan M Davis wrote: zeroes out the vtbl Hmm, I was expecting that DMD, at least in -release mode, optimize foo() to a direct call, since there's no inheritance. It was discussed a

Re: 1 matches bool, 2 matches long

2013-04-30 Thread Paulo Pinto
Am 30.04.2013 20:50, schrieb Steven Schveighoffer: On Tue, 30 Apr 2013 10:43:01 -0700, Rob T al...@ucora.com wrote: On Tuesday, 30 April 2013 at 14:47:14 UTC, Steven Schveighoffer wrote: Yes, just like it's better matching to long than string. -Steve More precise language is to state that

Re: Formal Review of std.uni

2013-04-30 Thread Jonathan M Davis
On Tuesday, April 30, 2013 15:13:14 Dmitry Olshansky wrote: Unicode -- can't be done on character by character basis Sure it can. It operates on dchar. I don't know what you've done with std.uni, but the way things have been laid out is that std.ascii: Operates on dchars, doing ASCII

Re: clear() causes crash?

2013-04-30 Thread Jonathan M Davis
On Tuesday, April 30, 2013 20:59:17 Dicebot wrote: On Tuesday, 30 April 2013 at 18:54:45 UTC, Luís Marques wrote: On Monday, 29 April 2013 at 21:58:46 UTC, Jonathan M Davis wrote: zeroes out the vtbl Hmm, I was expecting that DMD, at least in -release mode, optimize foo() to a

Re: clear() causes crash?

2013-04-30 Thread Mafi
On Monday, 29 April 2013 at 21:04:30 UTC, Luís Marques wrote: This crashes in the last line of main: class A { void foo() {} } void main() { A a = new A(); a.foo(); clear(a); assert(a !is null); a.foo(); // crashes } As

Re: 1 matches bool, 2 matches long

2013-04-30 Thread Timothee Cour
+1 (and give a helpful compiler error with suggested modification)

Re: clear() causes crash?

2013-04-30 Thread Jonathan M Davis
On Tuesday, April 30, 2013 21:47:43 Mafi wrote: Hasn't 'clear' been renamed to 'destroy'? Yes, but an alias to clear still exists, and TDPL talks about clear, not destroy, so anyone reading TDPL would still expect it to be clear. - Jonathan M Davis

D frontend: Test suite online

2013-04-30 Thread Timon Gehr
For those who are interested, I have uploaded the test suite I use to guard my D frontend prototype against regressions to GitHub. You may access it from: https://github.com/tgehr/___ (Note that this is still very much a work in progress.) (dconf: David and deadalnix have received a binary.

Re: ARM targetting cross-toolchain with GDC

2013-04-30 Thread Timofei Bolshakoc
I was able to compile DGC to the Hello, World status for ARM using crosstools-ng 1.18 eglibc. uclibc would not work, it lack some of the functions in the library, context switching. There are several places I cheat ( to get Hello, World! ). Please advise:

Re: ARM targetting cross-toolchain with GDC

2013-04-30 Thread Timofei Bolshakov
I was able to compile DGC to the Hello, World status for ARM using crosstools-ng 1.18 eglibc. uclibc would not work, it lack some of the functions in the library, context switching. There are several places I cheat ( to get Hello, World! ). Please advise:

Re: DConf 2013 official car/room sharing thread

2013-04-30 Thread Daniel Murphy
Me too! My phone is not cooperating though. Zach the Mystic reachz...@gmail.com wrote in message news:tmigrwlhhlijoridd...@forum.dlang.org... On Monday, 29 April 2013 at 22:42:09 UTC, Tyro[17] wrote: Hi all, I'll be arriving tomorrow night. Will be in commuting from Redwood City if

How to dump the defaults version and debug names

2013-04-30 Thread cbleser
I would like to know if there is a way to dump the default version and debug names. Like listing default macros in gcc echo int main(){return 0;} | gcc -E -dM - I am missing the version values name of the compiler release (like dmd-2.060). Thank you.

Re: 1 matches bool, 2 matches long

2013-04-30 Thread MattCoder
On Monday, 29 April 2013 at 18:39:27 UTC, Walter Bright wrote: On 4/29/2013 10:10 AM, Steven Schveighoffer wrote: On Sat, 27 Apr 2013 13:27:39 -0700, Walter Bright newshou...@digitalmars.com wrote: . . . bool isn't an integer. It can implicitly cast to an integer, but that's it. Once we

Removing the int foo[]; syntax

2013-04-30 Thread Brian Schott
It complicates the grammar and doesn't fit with D's style of declaraing variables. (type then identifier) I realize that it was left in to make C programmers happy, but it doesn't even work like it does in C: int a[10]; int b[10], b[10]; int[10] c, d; int e[string]; int f[string], g[string];

Appending char[] to char[][] has unexpected results

2013-04-30 Thread Tim Keating
Not sure whether this is a bug, or perhaps I'm misunderstanding something, but it seems like this should work: void main() { char[][] outBuf; auto f = File(testData.txt, r); char[] buf; writeln(\n RAW OUTPUT *); while (f.readln(buf)) {

Re: Appending char[] to char[][] has unexpected results

2013-04-30 Thread anonymous
On Wednesday, 1 May 2013 at 03:54:23 UTC, Tim Keating wrote: Not sure whether this is a bug, or perhaps I'm misunderstanding something, but it seems like this should work: void main() { char[][] outBuf; auto f = File(testData.txt, r); char[] buf; writeln(\n

Re: debugging on Mac OSX

2013-04-30 Thread Jacob Carlborg
On 2013-04-30 02:01, Timothee Cour wrote: C) stacktraces on OSX with some modifications I did involving wrapping atos, etc: { shows function name, full file, line numbers, and catches segfaults. 0 file: exception.d:356 pure @safe bool std.exception.enforce!(bool).enforce(bool,

Re: debugging on Mac OSX

2013-04-30 Thread Jacob Carlborg
On 2013-04-29 20:49, Dan wrote: Thanks. What is the takeaway? That it does not work and can not work until these two bugs are fixed? A simple I don't think you can get there from here? At least these bugs need to be fixed to get demangled symbol names. -- /Jacob Carlborg

Re: Arrays of functions, function signatures and template instantiation

2013-04-30 Thread JR
On Tuesday, 30 April 2013 at 02:38:27 UTC, anonymous wrote: To get rid of the cast: [...] Instantiating the template with a function parameter causes a compilation error when actually calling the function; -- asdf.d:13: Error: variable asdf.MatrixWalker!(@system void(string

Re: Arrays of functions, function signatures and template instantiation

2013-04-30 Thread anonymous
On Tuesday, 30 April 2013 at 08:42:57 UTC, JR wrote: On Tuesday, 30 April 2013 at 02:38:27 UTC, anonymous wrote: To get rid of the cast: [...] Instantiating the template with a function parameter causes a compilation error when actually calling the function; -- asdf.d:13: Error:

Re: Arrays of functions, function signatures and template instantiation

2013-04-30 Thread JR
On Tuesday, 30 April 2013 at 09:18:56 UTC, anonymous wrote: On Tuesday, 30 April 2013 at 08:42:57 UTC, JR wrote: On Tuesday, 30 April 2013 at 02:38:27 UTC, anonymous wrote: Don't know what's going wrong there. It works for me: http://dpaste.dzfl.pl/5c71f80e My bad, I switched the wrong

Re: Arrays of functions, function signatures and template instantiation

2013-04-30 Thread anonymous
On Tuesday, 30 April 2013 at 10:02:07 UTC, JR wrote: [...] For instance, is it possible to have MatrixWalker's F type to have a default value of a NOP void function(), have the innermost foreach loop check if the element is a function, and if so call it directly without needing FuncRunner at

Re: how hash_t toHash() works?

2013-04-30 Thread gedaiu
On Monday, 29 April 2013 at 16:01:15 UTC, Ivan Kazmenko wrote: one more question What is the type of cont? auto cont = redBlackTree !(a.key b.key, true, MyRecord) (); I want to use this as a property in a class and i can't use there auto keyword... I tried different types but it did not

starting with GUI

2013-04-30 Thread Carlos
I;m trying to add a Entry but I get the following error: mywindow.d(12): Error: undefined identifier Entry Here is my code : window.add(new Entry(Minsit)); I'm just guessing to see if everything is that simple. So I have to define the Entry. How do I do that ? ( Any tutorials from the web

Re: starting with GUI

2013-04-30 Thread Carlos
Another version of the CLI which tries to keep 1440 minutes for a complete day ( this is desired on the GUI ) is : import std.stdio; import std.c.stdlib; void main() { immutable sitc = 1.66; immutable sleepc = 1.08; float tcsleep, tcsit, tc; int minsleep, minsit; write(Input minutes sit : \n);

Re: starting with GUI

2013-04-30 Thread anonymous
On Tuesday, 30 April 2013 at 17:03:07 UTC, Carlos wrote: I;m trying to add a Entry but I get the following error: mywindow.d(12): Error: undefined identifier Entry Here is my code : window.add(new Entry(Minsit)); I'm just guessing to see if everything is that simple. So I have to define the

Re: starting with GUI

2013-04-30 Thread Carlos
A wild guess: import gtk.Entry; Thank you I just did that some minutes ago ( a good guess ). Now I'm trying to work on the layout so I can finally enter in signals if that's how GTKD works.

Re: how hash_t toHash() works?

2013-04-30 Thread Ivan Kazmenko
- import std.functional; ... RedBlackTree !(MyRecord, binaryFun!a.key b.key, true) cont; ... cont = redBlackTree !(a.key b.key, true, MyRecord) (); - Error: template instance RedBlackTree!(ValueRecord, binaryFun, true) RedBlackTree!(ValueRecord, binaryFun, true) does not

Re: WinAPI callbacks and GC

2013-04-30 Thread Sean Kelly
On Apr 23, 2013, at 2:21 PM, Jack Applegame jappleg...@gmail.com wrote: According WinAPI documentation, CtrlHandler will be called in new additional thread. Is it safe to allocate GC memory in NOT Phobos threads? If not, how to make it safe? I'm trying call thread_attachThis() at the

[Issue 10011] New: Invalid UTF-8 sequence in generated JSON file in init property

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10011 Summary: Invalid UTF-8 sequence in generated JSON file in init property Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: json

[Issue 10012] New: [2.063 beta] pure constructors taking POD structs should be allowed for shared/immutable construction

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10012 Summary: [2.063 beta] pure constructors taking POD structs should be allowed for shared/immutable construction Product: D Version: D2 Platform: All OS/Version: All

[Issue 10012] [2.063 beta] pure constructors taking POD structs should be allowed for shared/immutable construction

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10012 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-04-30 02:13:44 PDT --- (In reply to comment #0) auto test3 = new immutable Test2 / (S()); // unnecessary '/' auto test3 = new immutable Test2(S()); After the fix, the

[Issue 10012] [2.063 beta] pure constructors taking POD structs should be allowed for shared/immutable construction

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10012 --- Comment #2 from S�nke Ludwig slud...@outerproduct.org 2013-04-30 02:24:01 PDT --- Sorry, I was blind while preparing the test case. This is the correct one: --- struct S { string str; } class Test { S _s; this(S s) pure { _s = s; } }

[Issue 9044] dmd sometimes produces object files with multiple definitions

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9044 --- Comment #24 from Denis Shelomovskij verylonglogin@gmail.com 2013-04-30 16:07:00 MSD --- Any plans on fixing this? In my unlucky hands even VisualD's cpp2d fails to build in debug mode because of the issue... -- Configure issuemail:

[Issue 10013] New: `inout` constructor sometimes fails to create immutable object

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10013 Summary: `inout` constructor sometimes fails to create immutable object Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords:

[Issue 10014] New: `__traits(parent, ...)` isn't parsed as type

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10014 Summary: `__traits(parent, ...)` isn't parsed as type Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal

[Issue 10014] `__traits(parent, ...)` isn't parsed as type

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10014 --- Comment #1 from Denis Shelomovskij verylonglogin@gmail.com 2013-04-30 18:15:50 MSD --- Another workaround is to use `init` property: `typeof(__traits(parent, C.i).init)` -- Configure issuemail:

[Issue 10015] New: Segfault on forward referencing a variable of templated struct

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10015 Summary: Segfault on forward referencing a variable of templated struct Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: ice

[Issue 10016] New: 2.062 - 2.063 Out of memory using RefCounted

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10016 Summary: 2.062 - 2.063 Out of memory using RefCounted Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2

[Issue 10016] 2.062 - 2.063 Out of memory using RefCounted

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10016 --- Comment #1 from Henning Pohl henn...@still-hidden.de 2013-04-30 09:43:35 PDT --- You can replace malloc with someRandomUnknownIdentifier. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 9656] Built-in dup result should behave as like unique array, if it is possible.

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9656 --- Comment #5 from bearophile_h...@eml.cc 2013-04-30 09:48:13 PDT --- (In reply to comment #4) But maybe we should have a language-level way (like an annotation) to denote some reference data as unique. I am ignorant regarding the compiler,

[Issue 1631] Bundled documentation requires connection to digitalmars.com

2013-04-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1631 --- Comment #3 from Eugene Ossintsev dl...@eugoss.eml.cc 2013-04-30 21:15:23 PDT --- Sorry, Yao, speaking of Google Ads, you're right. They are still there. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email