Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Ubuntu Linux, I can draw a simple Hello World interface (and a button on it to close the window) with Glade and save the file. Now how do I use GtkD and D to load that interface? Anyone got a super simple tutorial for that?

Re: How To: Passing curried functions around

2015-09-11 Thread Ali Çehreli via Digitalmars-d-learn
On 09/06/2015 12:05 PM, Bahman Movaqar wrote: > alias bool function(int n) validator_t; There is the relatively newer alias syntax which is more intuitive: alias Validator = bool function(int n); > bool isEven(int n) { ... } > bool isPrime(int n) { ... } > /** > *

Re: Hello World Example with Glade?

2015-09-11 Thread Mike James via Digitalmars-d-learn
On Friday, 11 September 2015 at 06:45:07 UTC, Mike McKee wrote: On Friday, 11 September 2015 at 06:00:39 UTC, Mike McKee wrote: [...] I think the start of this probably looks like the following, but I'm not certain: import gtk; import gobject.Type; import std.stdio; import std.c.process;

Re: char[] ported from C to char[0] in the D core library

2015-09-11 Thread badlink via Digitalmars-d-learn
On Wednesday, 9 September 2015 at 19:37:54 UTC, Alex Parrill wrote: It's a flexible array member [1], not a pointer. Changing it to `char*` would make it incompatible with the C functions using it. [1]: https://en.wikipedia.org/wiki/Flexible_array_member TIL a new detail about C on the D

[Issue 14014] struct init required for zero initialized static arrays

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14014 badlink changed: What|Removed |Added URL||http://forum.dlang.org/thre

Re: Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 06:00:39 UTC, Mike McKee wrote: On Ubuntu Linux, I can draw a simple Hello World interface (and a button on it to close the window) with Glade and save the file. Now how do I use GtkD and D to load that interface? Anyone got a super simple tutorial for that? I

Re: Multiple implicit type converters

2015-09-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 11 September 2015 at 16:25:53 UTC, Bahman Movaqar wrote: As only one `alias this` is possible for any type, how should one implement multiple implicit type converters? multiple alias this is supposed to work and might some day fyi But for today, the explicit is the only way to go.

[Issue 15019] [ICE] Heisencrash with -fPIC and non-trivial projects

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15019 --- Comment #4 from Vladimir Panteleev --- Maybe you could try running DMD under Valgrind? --

Re: Reasons to use D

2015-09-11 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 11 September 2015 at 15:37:45 UTC, Ola Fosheim Grøstad wrote: In the JavaScript world you have various versions of JavaScript, TypeScript, TypeScript+React, TypeScript+Angular, they coexists. So, as long as you can easily interface between languages it is ok. I think language

[Issue 15019] [ICE] Heisencrash with -fPIC and non-trivial projects

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15019 --- Comment #3 from ponce --- Can't reproduce on Windows, where I had to remove the -fPIC flag. --

[Issue 15040] New: showcase curl example doesn't run

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15040 Issue ID: 15040 Summary: showcase curl example doesn't run Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: minor Priority: P1

Re: Reasons to use D

2015-09-11 Thread via Digitalmars-d
On Friday, 11 September 2015 at 16:07:09 UTC, Sebastiaan Koppe wrote: I never understood those TypeScript people. They would learn a *new* language, just to compile it into JavaScript? It isn't a new language. It is where ECMAScript is going + structural typing and generics. The typing helps

[Issue 15040] showcase curl example doesn't run

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15040 --- Comment #1 from Gerald Jansen --- Hmm, the example "// Round floating point numbers" also crashes, but with message: Compilation error: (255 Unknown signal 255) unable to fork: Cannot allocate memory --

Re: Multiple implicit type converters

2015-09-11 Thread Meta via Digitalmars-d-learn
On Friday, 11 September 2015 at 16:25:53 UTC, Bahman Movaqar wrote: As only one `alias this` is possible for any type, how should one implement multiple implicit type converters? Actually I'm looking for something similar to Groovy's `asType` method[1]. An example in Groovy: Point p =

Re: Reasons to use D

2015-09-11 Thread via Digitalmars-d
Here's another recent D mention: http://cppcast.com/2015/09/scott-meyers/ at 16:35.

[Issue 15041] New: Pointer slice with one negative index throws 'Range violation'

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15041 Issue ID: 15041 Summary: Pointer slice with one negative index throws 'Range violation' Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW

Re: How To: Passing curried functions around

2015-09-11 Thread Ali Çehreli via Digitalmars-d-learn
On 09/11/2015 02:41 AM, Bahman Movaqar wrote: > On Friday, 11 September 2015 at 06:14:18 UTC, Ali Çehreli wrote: >> partial takes the function arguments as 'value template parameters'. >> Unfortunately, a function pointer like cannot be 'value >> template parameters'; only fundamental types and

Multiple implicit type converters

2015-09-11 Thread Bahman Movaqar via Digitalmars-d-learn
As only one `alias this` is possible for any type, how should one implement multiple implicit type converters? Actually I'm looking for something similar to Groovy's `asType` method[1]. An example in Groovy: Point p = new Point(1, 1) assert (p as BigDecimal[]) == [1, 1] assert

Re: Reasons to use D

2015-09-11 Thread bachmeier via Digitalmars-d
On Friday, 11 September 2015 at 13:51:55 UTC, Adam D. Ruppe wrote: C++ tends to be nice, yes. PHP isn't really any better than D, at least not when I was using it a few years ago. I recently decided to learn PHP just to learn PHP. I can confirm that the official docs are definitely worse than

[Issue 15040] showcase curl example doesn't run

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15040 Steven Schveighoffer changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12210] dlang.org home page example - Run button does not work

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12210 Steven Schveighoffer changed: What|Removed |Added CC|

Re: shared array?

2015-09-11 Thread Kagamin via Digitalmars-d-learn
On Friday, 11 September 2015 at 14:54:00 UTC, Prudence wrote: But in this case it is static, so why does it matter? Do you have any ideas how to wrap it or fix this? It matters exactly because it is static. A code written for single-threaded environment may not work correctly in shared

Re: shared array?

2015-09-11 Thread Prudence via Digitalmars-d-learn
On Friday, 11 September 2015 at 16:04:22 UTC, Kagamin wrote: On Friday, 11 September 2015 at 14:54:00 UTC, Prudence wrote: But in this case it is static, so why does it matter? Do you have any ideas how to wrap it or fix this? It matters exactly because it is static. A code written for

Re: Build It And They Will Not Come

2015-09-11 Thread Bill Baxter via Digitalmars-d-announce
To be fair, wasn't the movie talking about dead baseball player ghosts coming? For people to take that example and apply it to other endeavors in life is a bit ridiculous. But maybe I'm misremembering. Saw it a long time ago. On Sep 11, 2015 4:00 AM, "Chris via Digitalmars-d-announce" <

Re: Reasons to use D

2015-09-11 Thread bachmeier via Digitalmars-d
On Friday, 11 September 2015 at 14:17:03 UTC, Bahman Movaqar wrote: On Friday, 11 September 2015 at 13:15:03 UTC, Adam D. Ruppe wrote: "3. The documentation poor." I agree but so is the documentation for virtually everything else I've ever used too. I'd take D's over Ruby's for example.

Re: Better lambdas!!!!!!!!!!

2015-09-11 Thread Russel Winder via Digitalmars-d
On Thu, 2015-09-10 at 20:51 +, Adam D. Ruppe via Digitalmars-d wrote: > […] > > The string lambdas Phobos supports basically does this: > > `b < a*b` > > would work in there. These are falling out of favor with the new > syntax in the language, but they are still supported by most the >

Re: std.experimental.testing formal review

2015-09-11 Thread Atila Neves via Digitalmars-d
On Wednesday, 9 September 2015 at 18:54:30 UTC, Brian Schott wrote: On Wednesday, 9 September 2015 at 15:20:41 UTC, Robert burner Schadek wrote: This post marks the start of the two week review process of std.experimental.testing. PR: https://github.com/D-Programming-Language/phobos/pull/3207

Re: A collection of DIPs

2015-09-11 Thread via Digitalmars-d
On Wednesday, 9 September 2015 at 20:42:35 UTC, Laeeth Isharc wrote: On Wednesday, 9 September 2015 at 14:00:52 UTC, Brandon Ragland wrote: D has zero use in anything time sensitive. You mean, for example, like dealing with data for a billion customers and responding in a few hundred

Re: Hello World Example with Glade?

2015-09-11 Thread Mike James via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:13:22 UTC, Mike McKee wrote: On Friday, 11 September 2015 at 06:53:07 UTC, Mike James wrote: There's a Glade example in the demos/builder directory... I'm having trouble installing GtkD on Ubuntu Linux 14.04. I did the apt steps from here:

Re: shared array?

2015-09-11 Thread Kagamin via Digitalmars-d-learn
I get only one error: Error: non-shared method std.container.array.Array!(void delegate()).Array.~this is not callable using a shared object. It will try to destruct the array on program termination, but it requires the destructor to be aware of the shared context.

Re: shared array?

2015-09-11 Thread Kagamin via Digitalmars-d-learn
You can try to write a wrapper for the array that it aware of concurrency.

Re: Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:39:46 UTC, Mike James wrote: try # dmd test1.d -I/usr/include/dmd/gtkd3 # dmd test1.d -L-ldl -I/usr/include/dmd/gtkd3 test1.o:(.rodata+0x12c): undefined reference to `_D3gtk7Builder12__ModuleInfoZ' test1.o:(.rodata+0x130): undefined reference to

Re: Enumap -- a lightweight AA alternative when your keys are enums

2015-09-11 Thread Kagamin via Digitalmars-d-announce
On Friday, 11 September 2015 at 02:17:25 UTC, rcorre wrote: @nogc void donFancyHat(Enumap!(Attribute, int) map) { map.charisma += 1; } BTW, what this means? Isn't Enumap a value type?

Re: std.allocator ready for some abuse

2015-09-11 Thread Sönke Ludwig via Digitalmars-d
Am 11.09.2015 um 04:35 schrieb bitwise: On Thursday, 24 October 2013 at 19:53:56 UTC, Andrei Alexandrescu wrote: Code: https://github.com/andralex/phobos/blob/allocator/std/allocator.d Dox: http://erdani.com/d/phobos-prerelease/std_allocator.html Am I the only one seeing dead links? The

Re: Hello World Example with Glade?

2015-09-11 Thread Jordi Sayol via Digitalmars-d-learn
El 11/09/15 a les 09:13, Mike McKee via Digitalmars-d-learn ha escrit: > On Friday, 11 September 2015 at 06:53:07 UTC, Mike James wrote: >> There's a Glade example in the demos/builder directory... > > I'm having trouble installing GtkD on Ubuntu Linux 14.04. I did the apt steps > from here: >

Re: Russian-speaking community

2015-09-11 Thread drug via Digitalmars-d-announce
http://dlanguage.ru/viewtopic.php?id=58

Re: shared array?

2015-09-11 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, September 11, 2015 00:50:13 Adam D. Ruppe via Digitalmars-d-learn wrote: > On Friday, 11 September 2015 at 00:48:28 UTC, Prudence wrote: > > static Array!(bool delegate(int, WPARAM, LPARAM)) callbacks; > > Try just using a regular array instead of the library Array. > > > static bool

Re: What is "FilterResult" type?

2015-09-11 Thread Bahman Movaqar via Digitalmars-d-learn
On Wednesday, 9 September 2015 at 13:16:49 UTC, cym13 wrote: True. But is pumping the output of `filter` as the seed into `reduce` really considered weird usage!? I don't think it is really weird per se, I just can't think of a case where there isn't a better way to do it. I find it

Re: How To: Passing curried functions around

2015-09-11 Thread Bahman Movaqar via Digitalmars-d-learn
On Friday, 11 September 2015 at 06:14:18 UTC, Ali Çehreli wrote: On 09/06/2015 12:05 PM, Bahman Movaqar wrote: > alias bool function(int n) validator_t; There is the relatively newer alias syntax which is more intuitive: alias Validator = bool function(int n); Great. This is easily

Re: Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 06:53:07 UTC, Mike James wrote: There's a Glade example in the demos/builder directory... I'm having trouble installing GtkD on Ubuntu Linux 14.04. I did the apt steps from here: http://d-apt.sourceforge.net/ $ sudo su # wget

Re: A collection of DIPs

2015-09-11 Thread NX via Digitalmars-d
On Wednesday, 9 September 2015 at 21:27:02 UTC, deadalnix wrote: You can make a difference. Yes you probably don't have as much experience, but that's a great opportunity to learn. Many here would be willing to mentor you if you want. I can do it if you want to contribute to SDC. I'm sure

Re: Hello World Example with Glade?

2015-09-11 Thread Jordi Sayol via Digitalmars-d-learn
El 11/09/15 a les 11:05, Jordi Sayol via Digitalmars-d-learn ha escrit: > El 11/09/15 a les 09:13, Mike McKee via Digitalmars-d-learn ha escrit: >> On Friday, 11 September 2015 at 06:53:07 UTC, Mike James wrote: >>> There's a Glade example in the demos/builder directory... >> >> I'm having trouble

[Issue 14014] struct init required for zero initialized static arrays

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14014 --- Comment #2 from Kenji Hara --- I think this is a dup of issue 14992. --

Re: private selective import not so private ?

2015-09-11 Thread Gary Willoughby via Digitalmars-d-learn
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

Re: Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:20:57 UTC, Mike James wrote: It looks last keep you're missing an import path (-Ipath_to_source). Check out http://dlang.org/dmd-linux.html#switches I tried this just now: # dmd test1.d -I/usr/include/dmd/gtkd3/gtkc /usr/include/dmd/gtkd3/gtkc/gtk.d(28):

Re: Hello World Example with Glade?

2015-09-11 Thread Mike James via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:29:23 UTC, Mike McKee wrote: On Friday, 11 September 2015 at 07:20:57 UTC, Mike James wrote: It looks last keep you're missing an import path (-Ipath_to_source). Check out http://dlang.org/dmd-linux.html#switches I tried this just now: # dmd test1.d

Re: Hello World Example with Glade?

2015-09-11 Thread Mike James via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:47:15 UTC, Mike McKee wrote: [...] The undefined references mean you haven't provided a linker path to the GtkD libs. Have you built the GtkD libraries? Check out https://github.com/gtkd-developers/GtkD

Re: std.experimental.testing formal review

2015-09-11 Thread NVolcz via Digitalmars-d
On Wednesday, 9 September 2015 at 15:20:41 UTC, Robert burner Schadek wrote: This post marks the start of the two week review process of std.experimental.testing. Some questions from a Java programmer: How would I go about making test fixtures. Ex. in JUnit you have @Before and @BeforeClass

Re: shared array?

2015-09-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 11 September 2015 at 17:29:47 UTC, Prudence wrote: I don't care about "maybe" working. Since the array is hidden inside a class I can control who and how it is used and deal with the race conditions. You could use __gshared instead of shared. It means put it in non-tls storage,

Operator overloading or alternatives to expression templates

2015-09-11 Thread Martin Nowak via Digitalmars-d
I find the reasons for turining down my ER a bit moot. [Issue 14593 – operator overloading can't be used with expression templates](https://issues.dlang.org/show_bug.cgi?id=14593) AFAIK expression templates are the primary choice tom implement SIMD and matrix libraries. And I still have [this

[Issue 15042] [REG2.068] isInstanceOf fails when a template argument is an instance of the tested template

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15042 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 15019] [ICE] Heisencrash with -fPIC and non-trivial projects

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15019 Jacob Carlborg changed: What|Removed |Added CC||d...@me.com --- Comment #7

[Issue 15019] [ICE] Heisencrash on OS X with non-trivial projects

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15019 ponce changed: What|Removed |Added Summary|[ICE] Heisencrash with |[ICE] Heisencrash on OS X

[Issue 15019] [ICE] Heisencrash with -fPIC and non-trivial projects

2015-09-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15019 --- Comment #8 from ponce --- Indeed it does not. --

Re: Reasons to use D

2015-09-11 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 11 September 2015 at 15:30:05 UTC, Sebastiaan Koppe wrote: Does it have to do with char encodings? Not the issue I hit: it has to do with the script tags being ripped out. It says "To set the content of a element, which does not contain HTML, use the .text() method and

Re: Compile all-of-dub?

On 09/11/2015 01:37 PM, ZombineDev wrote: > On Wednesday, 9 September 2015 at 08:26:59 UTC, qznc wrote: >> ... > > https://github.com/MartinNowak/project_tester Right, please contribute.

Re: Multiple implicit type converters

On Friday, 11 September 2015 at 19:51:09 UTC, Dave Akers wrote: Would it be possible to create it as an 'as' template? Yeah, the way I'd do it is something like: T as(T)() { import std.traits; static if(isIntegral!T) return to!T(convert_to_some_int); else static

[Issue 15019] [ICE] Heisencrash on OS X with non-trivial projects

https://issues.dlang.org/show_bug.cgi?id=15019 --- Comment #10 from Jacob Carlborg --- (In reply to ponce from comment #9) > -m32 is necessary though Out of curiosity, what's the use case for 32bit on OS X? --

Re: Better lambdas!!!!!!!!!!

On 09/10/2015 08:23 PM, Jonathan M Davis wrote: That's one of the main reasons that I hate the idea of named arguments. It's more stuff that's part of the API, more public stuff that you have to name correctly and risk bikeshedding arguments over, and more stuff that can you can't change

Re: shared array?

On Friday, 11 September 2015 at 20:06:53 UTC, Prudence wrote: Can you back up this claim? Not saying your lying, I'd just like to know it's true for a fact? The list of things that trigger the GC is pretty short. See the bottom of this page: http://dlang.org/garbage.html Basically, the

Re: Huge output size for simple programs

Am Fri, 11 Sep 2015 05:36:27 -0700 schrieb Jonathan M Davis via Digitalmars-d-learn : > Now, as to why the gdc binary is so large, I don't know. My guess is > that it has something to do with the debug symbols. You could try > building with -g or -gc to see how

[Issue 12210] dlang.org home page example - Run button does not work

https://issues.dlang.org/show_bug.cgi?id=12210 Steven Schveighoffer changed: What|Removed |Added CC|

[Issue 13819] ICE: backend\cg87.c 1495 with mixin, delegate and -O

https://issues.dlang.org/show_bug.cgi?id=13819 ponce changed: What|Removed |Added Summary|Internal error: |ICE: backend\cg87.c 1495

[Issue 12034] Union and inlining leads to erroneous "Error: variable used before set"

https://issues.dlang.org/show_bug.cgi?id=12034 --- Comment #2 from ponce --- DMD v2.068.0 refuses this program with: test.d(15): Error: variable hu used before set Not sure if intended because the whole variable is written with hu.f = asHalf; --

[Issue 15042] [REG2.068] isInstanceOf fails when a template argument is an instance of the tested template

https://issues.dlang.org/show_bug.cgi?id=15042 --- Comment #1 from Marco Leise --- Digger traced it down to this pull request for #14290: https://github.com/D-Programming-Language/dmd/pull/4499/files#diff-0477a1d81a6a920c99362954179c59c8 --

[Issue 15019] [ICE] Heisencrash on OS X with non-trivial projects

https://issues.dlang.org/show_bug.cgi?id=15019 --- Comment #9 from ponce --- -g -debug and -w are not necessary to crash -m32 is necessary though --

Re: Better lambdas!!!!!!!!!!

On Friday, 11 September 2015 at 11:44:13 UTC, Russel Winder wrote: For example https://issues.dlang.org/show_bug.cgi?id=5710 If C++ interop is still important, maybe it would be a good idea to adopt C++ style lambdas.

Re: Hello World Example with Glade?

On 09/11/2015 04:00 PM, Mike McKee wrote: On Friday, 11 September 2015 at 09:07:37 UTC, Jordi Sayol wrote: On there is the "pkg-config" section: I finally got it to compile with your help, guys! :) Here's what I had to type: # dmd test1.d -L-ldl

[Issue 15043] New: [e2ir] dmd still crashes when trying to set a delegate from __traits(getOverloads)

https://issues.dlang.org/show_bug.cgi?id=15043 Issue ID: 15043 Summary: [e2ir] dmd still crashes when trying to set a delegate from __traits(getOverloads) Product: D Version: D2 Hardware: All OS: All

[Issue 12210] dlang.org home page example - Run button does not work

https://issues.dlang.org/show_bug.cgi?id=12210 --- Comment #7 from Gerald Jansen --- Ah. Sorry for the noise then. Keep up the good work! --

[Issue 15019] [ICE] Heisencrash on OS X with non-trivial projects

https://issues.dlang.org/show_bug.cgi?id=15019 --- Comment #11 from ponce --- Some users in my target market (I don't know the exact proportion) keep using 32-bit audio plugins since if they upgrade to a 64-bit host they have to upgrade all their software plugins. Some of

[Issue 15019] [ICE] Heisencrash on OS X 32-bit with non-trivial projects

https://issues.dlang.org/show_bug.cgi?id=15019 ponce changed: What|Removed |Added Summary|[ICE] Heisencrash on OS X |[ICE] Heisencrash on OS X

[Issue 15042] New: [REG2.068] isInstanceOf fails when a template argument is an instance of the tested template

https://issues.dlang.org/show_bug.cgi?id=15042 Issue ID: 15042 Summary: [REG2.068] isInstanceOf fails when a template argument is an instance of the tested template Product: D Version: D2 Hardware: All OS:

[Issue 15029] [Reg 2.069.0-devel] _postblitRecurse invokes opDispatch with __xpostblit (breaks emplace)

https://issues.dlang.org/show_bug.cgi?id=15029 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15016] Structs with opDispatch cannot be emplaced

https://issues.dlang.org/show_bug.cgi?id=15016 --- Comment #2 from Martin Nowak --- *** Issue 15029 has been marked as a duplicate of this issue. *** --

[Issue 12210] dlang.org home page example - Run button does not work

https://issues.dlang.org/show_bug.cgi?id=12210 --- Comment #6 from Vladimir Panteleev --- The problems you are seeing started recently, see here: http://forum.dlang.org/post/mr5da0$1djk$1...@digitalmars.com --

Re: Calling D from C, C++, Python…

On 2015-09-10 20:01, Russel Winder via Digitalmars-d-learn wrote: Is there an easy way of knowing when you do not have to initialize the D runtime system to call D code from, in this case, Python via a C adapter? You always need to initialize the D runtime, unless you have a D main function.

Re: Multiple implicit type converters

On Friday, 11 September 2015 at 19:34:46 UTC, Bahman Movaqar wrote: On Friday, 11 September 2015 at 16:33:52 UTC, Meta wrote: The only ways to get implicit conversion between two types in D are through `alias this`, inheritance, or implementing an interface. That's enough for me, I suppose.

module std.stream is deprecated - Will be removed by phobos version 2.070

https://github.com/D-Programming-Language/phobos/pull/3631 Apparently it was decided at DConf 2015 to remove std.stream and friends from Phobos. But these modules have been left untouched (i.e. they're "stable") for a long time, and there's a lot of D code using them. This decision seems to

[Issue 15016] Structs with opDispatch cannot be emplaced

https://issues.dlang.org/show_bug.cgi?id=15016 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu

[Issue 15019] [ICE] Heisencrash with -fPIC and non-trivial projects

https://issues.dlang.org/show_bug.cgi?id=15019 --- Comment #5 from ponce --- Here the valgrind output: http://pastebin.com/vMLUgbK1 --

[Issue 15019] [ICE] Heisencrash with -fPIC and non-trivial projects

https://issues.dlang.org/show_bug.cgi?id=15019 --- Comment #6 from ponce --- Interestingly enough, DMD never crashes if launch through the lldb debugger. --

Re: Multiple implicit type converters

On Friday, 11 September 2015 at 19:51:09 UTC, Dave Akers wrote: That's enough for me, I suppose. I am thinking of having a family of functions in my structs/classes as `as` family, such as `asDouble`, `asFooBar`. Would it be possible to create it as an 'as' template? Hmm...there's already

Re: Compile all-of-dub?

On 09/09/2015 10:26 AM, qznc wrote: > The Rust people have this Crater [0,1] tool, which essentially builds > all Rust libraries with two compiler versions and compares for regressions. I recently created a Jenkins project so that I can easily test many projects with a particular DPL version or

[Issue 12210] dlang.org home page example - Run button does not work

https://issues.dlang.org/show_bug.cgi?id=12210 --- Comment #5 from Gerald Jansen --- Okay, so the sample programs often fail to run for timeout or lack of memory and this has been ongoing(?) since November 2013. How could a visitor take a language seriously if the

Re: A collection of DIPs

On Friday, 11 September 2015 at 01:04:56 UTC, Brandon Ragland wrote: And @nogc is just a band-aid fix. Might as well go back to C or C++ and leave the silly @nogc behind with all it's weird integration rules when working around managed memory. Some of us use and need @nogc all the time.

Re: Multiple implicit type converters

On Friday, 11 September 2015 at 16:33:52 UTC, Meta wrote: The only ways to get implicit conversion between two types in D are through `alias this`, inheritance, or implementing an interface. That's enough for me, I suppose. I am thinking of having a family of functions in my structs/classes

Re: Multiple implicit type converters

On Friday, 11 September 2015 at 16:31:46 UTC, Adam D. Ruppe wrote: explicit is the only way to go. That's easy to do, just write like a .get method or something that does the conversion and returns it. Fair enough. Type conversion is one of those spots that I'd like it to as explicit as

Re: shared array?

On Friday, 11 September 2015 at 19:27:49 UTC, Adam D. Ruppe wrote: On Friday, 11 September 2015 at 17:29:47 UTC, Prudence wrote: I don't care about "maybe" working. Since the array is hidden inside a class I can control who and how it is used and deal with the race conditions. You could use

Re: How To: Passing curried functions around

On Friday, 11 September 2015 at 18:39:15 UTC, Ali Çehreli wrote: >> import std.stdio; >> >> bool isEven(int n) { >> return !(n % 2); >> } >> >> int readValidInt(alias validator)(string prompt) { readValidInt() is a function template that takes two information: 1) The validator as its

Re: How To: Passing curried functions around

On 09/11/2015 01:07 PM, Bahman Movaqar wrote: > On Friday, 11 September 2015 at 18:39:15 UTC, Ali Çehreli wrote: >> >> import std.stdio; >> >> >> >> bool isEven(int n) { >> >> return !(n % 2); >> >> } >> >> >> >> int readValidInt(alias validator)(string prompt) { >> >> readValidInt() is a

Re: How To: Passing curried functions around

On 09/11/2015 02:04 PM, Ali Çehreli wrote: The same keyword has a different use with templates: And the official documentation: http://dlang.org/template.html#TemplateAliasParameter Ali

[Issue 14331] Cannot cast(void*) a class with an alias this struct

https://issues.dlang.org/show_bug.cgi?id=14331 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu

Re: module std.stream is deprecated - Will be removed by phobos version 2.070

On Fri, Sep 11, 2015 at 09:16:05PM +, Brian Schott via Digitalmars-d wrote: > On Friday, 11 September 2015 at 20:29:56 UTC, Vladimir Panteleev wrote: > >Apparently it was decided at DConf 2015 to remove std.stream and > >friends from Phobos. > > Kill it with fire. +1. T -- Guns don't

Re: std.allocator ready for some abuse

On Friday, 25 October 2013 at 00:00:36 UTC, Andrei Alexandrescu wrote: On 10/24/13 2:38 PM, Namespace wrote: On Thursday, 24 October 2013 at 21:31:42 UTC, Namespace wrote: Awesome! Will Appender get an option to use a suitable allocator? A dream of me, that will probably never come true,

[Issue 15016] Structs with opDispatch cannot be emplaced

https://issues.dlang.org/show_bug.cgi?id=15016 --- Comment #4 from Martin Nowak --- And the actual trigger for this bug is a change in hasMember. --

Re: module std.stream is deprecated - Will be removed by phobos version 2.070

On Friday, 11 September 2015 at 20:29:56 UTC, Vladimir Panteleev wrote: https://github.com/D-Programming-Language/phobos/pull/3631 Apparently it was decided at DConf 2015 to remove std.stream and friends from Phobos. But these modules have been left untouched (i.e. they're "stable") for a

Re: module std.stream is deprecated - Will be removed by phobos version 2.070

On 09/11/2015 07:06 PM, Jonathan M Davis wrote: On Friday, 11 September 2015 at 20:29:56 UTC, Vladimir Panteleev wrote: https://github.com/D-Programming-Language/phobos/pull/3631 Apparently it was decided at DConf 2015 to remove std.stream and friends from Phobos. But these modules have been

[Issue 15044] New: [Reg 2.068.0] destroy might leak memory

https://issues.dlang.org/show_bug.cgi?id=15044 Issue ID: 15044 Summary: [Reg 2.068.0] destroy might leak memory Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression

[Issue 15043] [e2ir] dmd still crashes when trying to set a delegate from __traits(getOverloads)

https://issues.dlang.org/show_bug.cgi?id=15043 bb.t...@gmx.com changed: What|Removed |Added Severity|major |normal --- Comment #1 from bb.t...@gmx.com

  1   2   3   >