Re: IPFS is growing and Go, Swift, ruby, python, rust, C++, etc are already there

2016-01-13 Thread Joakim via Digitalmars-d
On Wednesday, 13 January 2016 at 00:00:17 UTC, israel wrote: On Tuesday, 12 January 2016 at 23:26:07 UTC, karabuta wrote: Anyone has the fuel and time to take the initiative? It will probably take over HTTP. Currently implemented in Go with JavaScript and Python on the way. However it seems

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 I like the fact that the header is consistent with the other design. It could use less white though. Although I understand that you just

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Marc Schütz via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 It's much too white for my taste; the old version is more easy on the eyes. And there's a white margin left of the menu bar.

Re: mixed-in ctor not on par with explicit one?

2016-01-13 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-01-13 04:32, Shriramana Sharma wrote: Hello. Compiling the following code: mixin template intCtor() { this(int i) {} } struct Test { mixin intCtor; this(string s) {} } void main() { auto a = Test("hello"); auto b = Test(1); } ...gives the error: (6): Error: constructor

Re: D and C APIs

2016-01-13 Thread Atila Neves via Digitalmars-d
On Tuesday, 12 January 2016 at 18:59:01 UTC, Walter Bright wrote: Many times I've considered simply incorporating a C compiler into the D compiler, and then: import "stdio.h"; The perennial problem, however, is the C preprocessor and all the bizarre things people do with it in even the

Re: D and C APIs

2016-01-13 Thread Atila Neves via Digitalmars-d
On Tuesday, 12 January 2016 at 14:10:02 UTC, John Colvin wrote: On Tuesday, 12 January 2016 at 13:24:48 UTC, Russel Winder wrote: On Tue, 2016-01-12 at 11:05 +, John Colvin via Digitalmars-d wrote: […] What's so hard about writing a few function prototypes, aliases and enums? It's

Re: extern(C++, ns)

2016-01-13 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 13 January 2016 at 09:11:43 UTC, Martin Drašar wrote: I am with Manu on this one. Introducing scoping to C++ namespaces is a design mistake, because it fails to deliver on its promise to emulate true C++ namespaces. Next version of C++ will probably allow this: namespace

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Paolo Invernizzi via Digitalmars-d
On Wednesday, 13 January 2016 at 06:44:31 UTC, Suliman wrote: On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 I dislike it :( old one is better. Probably you need make content up to 100% of

Re: extern(C++, ns)

2016-01-13 Thread Martin Drašar via Digitalmars-d
Dne 13.1.2016 v 7:51 Walter Bright via Digitalmars-d napsal(a): > If you like: > > extern (C++) { > int a; > extern (C++,ns) { > int a; > } > } > > The whole point of scoped names is to be able to do this. > > Also, I would expect to be able to access

Re: [dlang.org] new forum design - preview

2016-01-13 Thread wobbles via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 I like it, it looks very well and I like how it mirrors the front pages design. As others have said, maybe utilizing more horizontal space would

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Meta via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 My only complaint is that it does not utilize the horizontal space available, unlike the current design. Otherwise it nicely matches the front

Re: mixed-in ctor not on par with explicit one?

2016-01-13 Thread Shriramana Sharma via Digitalmars-d-learn
Hello and thanks for your reply. Jacob Carlborg wrote: > [1] http://dlang.org/spec/template-mixin.html - search for "Alias > declarations can be used to overload together functions declared in > different mixins" But I'm not able to do that with `this`: mixin template myCtors() { this(int

Re: cast fails for classes from windows dll

2016-01-13 Thread Benjamin Thaut via Digitalmars-d-learn
On Tuesday, 12 January 2016 at 19:00:26 UTC, Andre wrote: Hi, I am not sure, whether this is a current limitation of the windows dll functionality of D or I am doing s.th. which will not work. I have developed in D a windows DLL which creates class instances by passing the name (using

Re: Declaring extern(C) declarations with template mixins

2016-01-13 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-01-12 22:27, Mathias Lang wrote: https://issues.dlang.org/show_bug.cgi?id=12575 Thanks. -- /Jacob Carlborg

Re: Scale-Hierarchy on ndslice

2016-01-13 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Tuesday, 12 January 2016 at 21:48:39 UTC, Per Nordlöw wrote: Have anybody been thinking about adding a scale-hierarchy structure on top of ndslice? I need this to implementing some cool signal/image processing algorithms in D. When processing an image this structure is called a Mipmap.

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Zoadian via Digitalmars-d
On Wednesday, 13 January 2016 at 13:41:00 UTC, Bubbasaur wrote: May I suggest one thing? Could you put the page numbers on top instead of bottom? Because this is a common style in many pages, I think It would be nice if it was right bellow of (Log in,Settings,help), because currently, if I

Re: "Good PR" mechanical check

2016-01-13 Thread Andrei Alexandrescu via Digitalmars-d
On 1/13/16 12:19 AM, H. S. Teoh via Digitalmars-d wrote: On Tue, Jan 12, 2016 at 02:03:57PM -0500, Andrei Alexandrescu via Digitalmars-d wrote: On 01/12/2016 08:42 AM, Martin Drašar via Digitalmars-d wrote: Wouldn't it be sufficient to mandate usage of dfmt with proper settings before

[Issue 15539] core.sys.windows.* tweaks for 2.070

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15539 --- Comment #3 from Vladimir Panteleev --- (In reply to jiki from comment #1) > - extern (Windows) missed : wrong calling convention >For instance: the aliases of callback functions in commctrl.d and > wingdi.d. > - API

What is your favourite programming language?

2016-01-13 Thread pvb via Digitalmars-d
Hello guys, for a school project I need to know which programming languages are popular. For this I created a poll and I would be thankful if you would fill it in. Kind regards Poll: http://www.poll-maker.com/poll542250xF66b4d2D-23

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Bubbasaur via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 Awesome, much better in style and space usage. May I suggest one thing? Could you put the page numbers on top instead of bottom? Because this is

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Bubbasaur via Digitalmars-d
On Wednesday, 13 January 2016 at 10:02:47 UTC, Marc Schütz wrote: On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 It's much too white for my taste; the old version is more easy on the eyes.

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 13 January 2016 at 13:41:00 UTC, Bubbasaur wrote: On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 Awesome, much better in style and space usage. May I suggest one thing? Could

Re: opCmp, [partial/total/pre]orders, custom floating point types etc.

2016-01-13 Thread John Colvin via Digitalmars-d
On Wednesday, 13 January 2016 at 01:43:21 UTC, John Colvin wrote: On Wednesday, 13 January 2016 at 01:39:26 UTC, John Colvin wrote: On Wednesday, 13 January 2016 at 00:31:48 UTC, Andrei Alexandrescu wrote: [...] I would completely agree, except that we have builtin types that don't obey

Re: mixed-in ctor not on par with explicit one?

2016-01-13 Thread Shriramana Sharma via Digitalmars-d-learn
Jacob Carlborg wrote: > Looks like a limitation in the language. Apparently already reported as well: https://issues.dlang.org/show_bug.cgi?id=11500 -- Shriramana Sharma, Penguin #395953

Re: mixed-in ctor not on par with explicit one?

2016-01-13 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 13:53:01 UTC, Daniel N wrote: This works: Indeed... but interestingly, it does not work if you define the mixin before the new constructor: struct Test { mixin myCtors mixed; alias __ctor = mixed.__ctor; this(string s) {} } l.d(10):

Re: Wait-free thread communication

2016-01-13 Thread Jin via Digitalmars-d
On Sunday, 10 January 2016 at 21:25:34 UTC, Martin Nowak wrote: For blocking thread i use loop with Thread.sleep - this is bad decision IMHO. Have a look at this exponential backoff implementation for my GC spinlock PR.

Re: What is your favourite programming language?

2016-01-13 Thread Russel Winder via Digitalmars-d
On Wed, 2016-01-13 at 13:01 +, pvb via Digitalmars-d wrote: > Hello guys, > > for a school project I need to know which programming languages  > are popular. For this I created a poll and I would be thankful if  > you would fill it in. > > Kind regards > > Poll: >

How do you keep up with the Kardashi^W^W github?

2016-01-13 Thread Andrei Alexandrescu via Digitalmars-d
I have most github-related emails delivered to a separate folder. Only since Jan 30 2015 there are a staggering number of messages there - 25113. Just going through them all would be a full-time job that wouldn't allow me to do anything else. However, it turns out some of these are blocked in

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Bubbasaur via Digitalmars-d
On Wednesday, 13 January 2016 at 13:55:36 UTC, Vladimir Panteleev wrote: As soon as anyone comes up with a way to fit it into the design that doesn't look awful. https://github.com/CyberShadow/DFeed/issues/16 Well, I don't see any problem here, like I said, right bellow

Re: opCmp, [partial/total/pre]orders, custom floating point types etc.

2016-01-13 Thread John Colvin via Digitalmars-d
On Tuesday, 12 January 2016 at 21:27:38 UTC, Timon Gehr wrote: On 01/12/2016 10:02 PM, John Colvin wrote: On Tuesday, 12 January 2016 at 20:52:51 UTC, Timon Gehr wrote: On 01/12/2016 07:27 PM, John Colvin wrote: ... struct S{ auto opCmp(S rhs){ return float.nan; } bool opEquals(S

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 To clarify, all the forum.dlang.org work so far has been by anonymous / @aG0aep6G.

Re: [dlang.org] new forum design - preview

2016-01-13 Thread deadalnix via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 <3

Re: mixed-in ctor not on par with explicit one?

2016-01-13 Thread Daniel N via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 12:39:36 UTC, Jacob Carlborg wrote: On 2016-01-13 10:48, Shriramana Sharma wrote: This is not what alias <> this is supposed to do, right? No. So how am I supposed to get the mixed in ctors work? Looks like a limitation in the language. This works:

Re: extern(C++, ns)

2016-01-13 Thread NX via Digitalmars-d
On Wednesday, 13 January 2016 at 10:53:06 UTC, Ola Fosheim Grøstad wrote: Next version of C++ will probably allow this: namespace a::b::c::d::e { ... } Current version of D2 allow this: module a.b.c.d.e;

Re: mixed-in ctor not on par with explicit one?

2016-01-13 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-01-13 10:48, Shriramana Sharma wrote: This is not what alias <> this is supposed to do, right? No. So how am I supposed to get the mixed in ctors work? Looks like a limitation in the language. -- /Jacob Carlborg

[Issue 15553] topN very inefficient [slower than sort, even for topN(0)] but should be O(n)

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15553 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/10da3381c1d8d92ba8f0ef96e157beb1ada83f49 Merge pull request

Re: Scale-Hierarchy on ndslice

2016-01-13 Thread Per Nordlöw via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 08:31:58 UTC, Ilya Yaroshenko wrote: If you describe additional required features for ndslice, I will think how they can be implemented in the Mir/Phobos. --Ilya Ok, great. BTW: What is Mir?

Re: Scale-Hierarchy on ndslice

2016-01-13 Thread jmh530 via Digitalmars-d-learn
On Tuesday, 12 January 2016 at 21:48:39 UTC, Per Nordlöw wrote: Have anybody been thinking about adding a scale-hierarchy structure on top of ndslice? What is a scale-hierarchy structure?

Re: IPFS is growing and Go, Swift, ruby, python, rust, C++, etc are already there

2016-01-13 Thread karabuta via Digitalmars-d
On Wednesday, 13 January 2016 at 08:19:01 UTC, Joakim wrote: On Wednesday, 13 January 2016 at 00:00:17 UTC, israel wrote: On Tuesday, 12 January 2016 at 23:26:07 UTC, karabuta wrote: Anyone has the fuel and time to take the initiative? It will probably take over HTTP. Currently implemented

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 I like it better than the old design which, however the information displayed could be cut a bit imho. There are 539,207 posts, 84,471 threads,

Re: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 18:40:39 UTC, Dav1d wrote: On Wednesday, 13 January 2016 at 17:43:54 UTC, Jason Jeffory wrote: On Wednesday, 13 January 2016 at 16:04:32 UTC, Dav1d wrote: On Wednesday, 13 January 2016 at 06:30:44 UTC, Jason Jeffory wrote: [...] That's not correct. Build a

[Issue 15561] std.typecons.Proxy gets NaN comparisons wrong

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15561 Andrei Alexandrescu changed: What|Removed |Added CC||and...@erdani.com

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-13 14:55, Vladimir Panteleev wrote: As soon as anyone comes up with a way to fit it into the design that doesn't look awful. I don't think this [1] looks so awful. [1] https://drive.google.com/open?id=0B7UtafxGD9vEX0NVYXlyWHhDX3c -- /Jacob Carlborg

Re: Anyone using glad?

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 19:20:40 UTC, Jason Jeffory wrote: What I can't seem to figure out why try { loop } catch { } catches the exception but try { loop } catch (Throwable t) // Only diff { } doesn't ;/ Probably my ignorance about D, but I was hoping to get some info about the

Glad and WGL

2016-01-13 Thread Josh Phillips via Digitalmars-d-learn
So I started using Glad but I can't get WGL to work with it, though I think this is more of a Win32 issue than WGL. wndclass.lpfnWndProc = Gives me an error no matter what: Error: cannot implicitly convert expression (& WndProc) of type int function(void* hWnd, uint message, uint wParam,

Re: Glad and WGL

2016-01-13 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 18:34:14 UTC, Josh Phillips wrote: extern(Windows) LRESULT WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) You just need to explicitly mark it nothrow in the signature. Add `nothrow` to the end of the param list: extern(Windows) LRESULT

Re: Glad and WGL

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 18:34:14 UTC, Josh Phillips wrote: So I started using Glad but I can't get WGL to work with it, though I think this is more of a Win32 issue than WGL. wndclass.lpfnWndProc = Gives me an error no matter what: Error: cannot implicitly convert expression (&

Re: Anyone using glad?

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 17:43:54 UTC, Jason Jeffory wrote: On Wednesday, 13 January 2016 at 16:04:32 UTC, Dav1d wrote: On Wednesday, 13 January 2016 at 06:30:44 UTC, Jason Jeffory wrote: [...] That's not correct. Build a debug build and check the stacktrace which should be printed,

Re: [dlang.org] new forum design - preview

2016-01-13 Thread rumbu via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 1. Roboto Slab is awful for a forum - at least on Windows. Roboto Slab Bold is even bleeding on my screen due to anti-aliasing. Use a sans serif

druntime build is broken on Win_32

2016-01-13 Thread tsbockman via Digitalmars-d
Error: don't know how to make 'import\core\sys\linux\stdio.d' Possibly caused by: https://github.com/D-Programming-Language/druntime/pull/1404/files#diff-7d40e7eb04757040e0db6ec6923cd026L50

Re: [dlang.org] new forum design - preview

2016-01-13 Thread karabuta via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 The DSFML website has a good selection of colours for the page and header background (but no syntax highlighting though) http://www.dsfml.com/

Re: Linking a DLL to a DLL with packages

2016-01-13 Thread Thalamus via Digitalmars-d-learn
On Sunday, 10 January 2016 at 15:58:55 UTC, Benjamin Thaut wrote: Am 09.01.2016 um 16:45 schrieb Thalamus: Hi Benjamin, I wouldn't say I need DLLs to work fully _really_ badly. The only non-negligible issue with single very large binaries that's crossed my mind is patching, but we're years

Re: Scale-Hierarchy on ndslice

2016-01-13 Thread Timothee Cour via Digitalmars-d-learn
On Wed, Jan 13, 2016 at 10:13 AM, jmh530 via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: > On Tuesday, 12 January 2016 at 21:48:39 UTC, Per Nordlöw wrote: > >> Have anybody been thinking about adding a scale-hierarchy structure on >> top of ndslice? >> > > What is a

Re: Compiler complaining about ~ used on static array in @nogc fn

2016-01-13 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Jan 13, 2016 at 10:23:17PM +0530, Shriramana Sharma via Digitalmars-d-learn wrote: > Referring to: > https://auto-tester.puremagic.com/show-run.ghtml?projectid=1=1915054=true, > the lines in question are > phobos/std/utf.d (66, 67): > > UnsignedStringBuf buf = void; >

Re: Glad and WGL

2016-01-13 Thread Josh Phillips via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 18:37:09 UTC, Adam D. Ruppe wrote: You just need to explicitly mark it nothrow in the signature. Add `nothrow` to the end of the param list: extern(Windows) LRESULT WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) nothrow and then you'll be

Re: [dlang.org] new forum design - preview

2016-01-13 Thread karabuta via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 Disclaimer: I am a web designer Looks like an old website of the 2010's IMO :) 1. The reddish header background is not inviting. I suggest a

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 13 January 2016 at 19:18:57 UTC, Guillaume Piolat wrote: I also feel like it's not necessary to underline non-hovered links, this makes everything underlined. With the rules: a { text-decoration: none; } a:hover { text-decoration: underline; } it looks like this:

Re: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
What I can't seem to figure out why try { loop } catch { } catches the exception but try { loop } catch (Throwable t) // Only diff { } doesn't ;/ Probably my ignorance about D, but I was hoping to get some info about the exception this way(line number, etc...)

Output range of ranges to single buffer

2016-01-13 Thread Jacob Carlborg via Digitalmars-d-learn
Is it possible to somehow output a range of ranges to a single string buffer? For example, converting an array of integers to a string with the same representation as the source code. import std.algorithm; import std.conv; import std.string; void main() { auto a = [1, 2, 3, 4, 5];

Re: Scale-Hierarchy on ndslice

2016-01-13 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 18:09:06 UTC, Per Nordlöw wrote: On Wednesday, 13 January 2016 at 08:31:58 UTC, Ilya Yaroshenko wrote: If you describe additional required features for ndslice, I will think how they can be implemented in the Mir/Phobos. --Ilya Ok, great. BTW: What is Mir?

Re: IPFS is growing and Go, Swift, ruby, python, rust, C++, etc are already there

2016-01-13 Thread Wyatt via Digitalmars-d
On Wednesday, 13 January 2016 at 19:17:00 UTC, karabuta wrote: when they do This is... remarkably optimistic. -Wyatt

Re: Glad and WGL

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 19:05:30 UTC, Josh Phillips wrote: On Wednesday, 13 January 2016 at 18:37:09 UTC, Adam D. Ruppe wrote: [...] Oh wow that's easy. They should really make that more clear in the dlang reference. They way it sounds there made me think that if a function doesn't

[Issue 15565] New: Forward reference error with namespaces

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15565 Issue ID: 15565 Summary: Forward reference error with namespaces Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority:

[Issue 15565] Forward reference error with namespaces

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15565 Walter Bright changed: What|Removed |Added Keywords||C++ --

Re: What is your favourite programming language?

2016-01-13 Thread WhatMeWorry via Digitalmars-d
On Wednesday, 13 January 2016 at 13:01:39 UTC, pvb wrote: Hello guys, for a school project I need to know which programming languages are popular. For this I created a poll and I would be thankful if you would fill it in. Kind regards Poll: http://www.poll-maker.com/poll542250xF66b4d2D-23

Re: extern(C++, ns)

2016-01-13 Thread Daniel N via Digitalmars-d
On Tuesday, 12 January 2016 at 05:25:17 UTC, Andrei Alexandrescu wrote: 1. This code { ... } ought to compile with { these semantics } but does not. This code... extern(C++, one) void fun1(); extern(C++, one) void fun2(); ... ought to compile. Considering that all scopes are closed in D,

Re: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 20:13:49 UTC, Dav1d wrote: On Wednesday, 13 January 2016 at 19:20:40 UTC, Jason Jeffory wrote: What I can't seem to figure out why try { loop } catch { } catches the exception but try { loop } catch (Throwable t) // Only diff { } doesn't ;/ Probably my

[Issue 15564] New: Bogus non local error messages

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15564 Issue ID: 15564 Summary: Bogus non local error messages Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement Priority:

Re: std.experimental.yesnogc

2016-01-13 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 14 January 2016 at 00:35:53 UTC, Andrei Alexandrescu wrote: Hey folks, I want to push things forward with artifacts dedicated to avoiding the GC, and of course my main worry is finding the right name. An obvious choice is std.experimental.nogc but we know from Marketing 101 that

Re: extern(C++, ns)

2016-01-13 Thread Walter Bright via Digitalmars-d
On 1/13/2016 5:33 PM, Manu via Digitalmars-d wrote: I managed to quickly reduce to this point again: module m.x; alias X2 = X; extern (C++, ns) struct X {} Error: undefined identifier 'X' It's a bug. Thanks for finding and posting it. https://issues.dlang.org/show_bug.cgi?id=15565 As a

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 14 January 2016 at 03:55:23 UTC, Meta wrote: On Thursday, 14 January 2016 at 02:56:03 UTC, Vladimir Panteleev wrote: On Wednesday, 13 January 2016 at 09:22:54 UTC, Meta wrote: On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/

Re: Output range of ranges to single buffer

2016-01-13 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-01-13 22:20, H. S. Teoh via Digitalmars-d-learn wrote: Isn't that just a matter of replacing each of the segments with their range equivalents? Also, std.format.formattedWrite will do writeln-formatting into a buffer (well, any output range, really) -- I'm pretty sure it doesn't

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Brad Anderson via Digitalmars-d
On Thursday, 14 January 2016 at 02:56:03 UTC, Vladimir Panteleev wrote: On Wednesday, 13 January 2016 at 09:22:54 UTC, Meta wrote: On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 My only

Re: std.experimental.yesnogc

2016-01-13 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-14 01:35, Andrei Alexandrescu wrote: Hey folks, I want to push things forward with artifacts dedicated to avoiding the GC, and of course my main worry is finding the right name. An obvious choice is std.experimental.nogc but we know from Marketing 101 that expressing something as a

Re: Output range of ranges to single buffer

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 21:15:03 UTC, Jacob Carlborg wrote: Is it possible to somehow output a range of ranges to a single string buffer? For example, converting an array of integers to a string with the same representation as the source code. [...] std.format can do it. From the

Re: How do you keep up with the Kardashi^W^W github?

2016-01-13 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 13 January 2016 at 14:01:01 UTC, Andrei Alexandrescu wrote: I'm sure there must be better techniques. How do you keep up with github? Andrei My methodology is simple: disable the emails. Github's notifications page is suitable for giving a 10,000ft of what's going on. If

Re: [dlang.org] new forum design - preview

2016-01-13 Thread NVolcz via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 1. When on my laptop I would prefer to have not have the sidebar due to waste of screen space. 2. I prefer the black theme.

Re: Output range of ranges to single buffer

2016-01-13 Thread Ali Çehreli via Digitalmars-d-learn
On 01/13/2016 01:20 PM, H. S. Teoh via Digitalmars-d-learn wrote: std.format.formattedWrite will do writeln-formatting into a buffer (well, any output range, really) -- I'm pretty sure it doesn't allocate, at least for the simplest cases like converting an integer. So you should be able to do

Re: What is your favourite programming language?

2016-01-13 Thread Chris Wright via Digitalmars-d
Are you interested in a programming language alone, or everything included in the standard distribution, or should I be including package managers and IDEs and community and tooling and available libraries? The answers are quite different in each case.

[Issue 15458] when i input "." to show expansion,it crashed.

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15458 Rainer Schuetze changed: What|Removed |Added CC||r.sagita...@gmx.de

[Issue 14972] Documentation for std.windows.* missing

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14972 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/34235001210526431ddf910be2f805cbb62172fb Merge pull

Re: druntime build is broken on Win_32

2016-01-13 Thread tsbockman via Digitalmars-d
On Wednesday, 13 January 2016 at 21:05:46 UTC, tsbockman wrote: Error: don't know how to make 'import\core\sys\linux\stdio.d' Possibly caused by: https://github.com/D-Programming-Language/druntime/pull/1404/files#diff-7d40e7eb04757040e0db6ec6923cd026L50 fixup broken windows build (#1404):

[Issue 15564] Bogus non local error messages

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15564 --- Comment #1 from deadalnix --- The query method : auto query(alias f, T...)(T args) shared { auto s = acquireSocket(); scope(exit) releaseSocket(s); return f(Host(config, s), args); } --

Re: Output range of ranges to single buffer

2016-01-13 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Jan 13, 2016 at 10:15:03PM +0100, Jacob Carlborg via Digitalmars-d-learn wrote: > Is it possible to somehow output a range of ranges to a single string > buffer? For example, converting an array of integers to a string with > the same representation as the source code. > > import

Re: [dlang.org] new forum design - preview

2016-01-13 Thread tsbockman via Digitalmars-d
On Wednesday, 13 January 2016 at 20:11:07 UTC, Jacob Carlborg wrote: On 2016-01-13 14:55, Vladimir Panteleev wrote: As soon as anyone comes up with a way to fit it into the design that doesn't look awful. I don't think this [1] looks so awful. [1]

Re: Anyone using glad?

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 22:51:45 UTC, Jason Jeffory wrote: After an few hours of fucking with cmake, turns out it had a bug. Updated it and worked. Pretty much through with this crap. I'm not going to waste any more time screwing with the dysfunctional approach that software design is

Re: Scale-Hierarchy on ndslice

2016-01-13 Thread Ilya via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 20:11:55 UTC, Timothee Cour wrote: On Wed, Jan 13, 2016 at 10:13 AM, jmh530 via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: On Tuesday, 12 January 2016 at 21:48:39 UTC, Per Nordlöw wrote: Have anybody been thinking about adding a

[Issue 15539] core.sys.windows.* tweaks for 2.070

2016-01-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15539 --- Comment #4 from j...@red.email.ne.jp --- (In reply to Vladimir Panteleev from comment #3) > (In reply to jiki from comment #1) > Do you have a list of specific functions which need their signatures fixed? No, sorry. I failed because I've

Re: druntime build is broken on Win_32

2016-01-13 Thread tsbockman via Digitalmars-d
On Wednesday, 13 January 2016 at 21:05:46 UTC, tsbockman wrote: Error: don't know how to make 'import\core\sys\linux\stdio.d' It's fixed now.

Re: std.experimental.yesnogc

2016-01-13 Thread Ilya via Digitalmars-d
On Thursday, 14 January 2016 at 00:35:53 UTC, Andrei Alexandrescu wrote: Hey folks, I want to push things forward with artifacts dedicated to avoiding the GC, and of course my main worry is finding the right name. An obvious choice is std.experimental.nogc but we know from Marketing 101 that

Re: extern(C++, ns)

2016-01-13 Thread Meta via Digitalmars-d
On Thursday, 14 January 2016 at 01:33:01 UTC, Manu wrote: I managed to quickly reduce to this point again: module m.x; alias X2 = X; extern (C++, ns) struct X {} Error: undefined identifier 'X' I was using the nightly from the other night that I used to test the alias fix, but it seems to

Re: Glad and WGL

2016-01-13 Thread userABCabc123 via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 19:05:30 UTC, Josh Phillips wrote: Oh wow that's easy. They should really make that more clear in the dlang reference. They way it sounds there made me think that if a function doesn't throw any errors it automatically is 'nothrow' No, because actually you

Re: D for TensorFlow-like library

2016-01-13 Thread tsbockman via Digitalmars-d
On Wednesday, 13 January 2016 at 15:56:52 UTC, jmh530 wrote: On Wednesday, 13 January 2016 at 15:10:13 UTC, krikru wrote: Hm, maybe making D bindings to an already existing library wouldn't be such a bad idea. But how do one create such bindings? Anyone knows of any good resource, like a

DIP86: Consistency for the "deprecated" attribute/storage class

2016-01-13 Thread Brian Schott via Digitalmars-d
http://wiki.dlang.org/DIP86 Your thoughts?

Re: std.experimental.yesnogc

2016-01-13 Thread Anonymouse via Digitalmars-d
On Thursday, 14 January 2016 at 00:35:53 UTC, Andrei Alexandrescu wrote: Hey folks, I want to push things forward with artifacts dedicated to avoiding the GC, and of course my main worry is finding the right name. std.samesamebutdifferent

Re: DIP86: Consistency for the "deprecated" attribute/storage class

2016-01-13 Thread Jack Stouffer via Digitalmars-d
On Thursday, 14 January 2016 at 02:31:38 UTC, Brian Schott wrote: http://wiki.dlang.org/DIP86 Your thoughts? I guess there's no reason not to, so LGTM. The use of the deprecated attribute on variables seems misguided in the first place though. I don't see much use for it vs possible use on

Re: [dlang.org] new forum design - preview

2016-01-13 Thread JohnCK via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 I think that top bar where is written "Forum" with down arrow should be position = fixed in favor of good browsing. JohnCK.

Re: extern(C++, ns)

2016-01-13 Thread Manu via Digitalmars-d
On 13 January 2016 at 16:51, Walter Bright via Digitalmars-d wrote: > On 1/12/2016 8:46 PM, Manu via Digitalmars-d wrote: >> >> Of course, it would save a lot of effort if you agreed that the design > is wrong, and none of us need to do anything further. > > I regard

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Puming via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 My 2 cents: 1. The left side bar is too wide. The content pane should be wider. 2. The "Group" column is too wide. 3. The "Last Post" column is

Re: std.experimental.yesnogc

2016-01-13 Thread rsw0x via Digitalmars-d
On Thursday, 14 January 2016 at 00:35:53 UTC, Andrei Alexandrescu wrote: Hey folks, I want to push things forward with artifacts dedicated to avoiding the GC, and of course my main worry is finding the right name. An obvious choice is std.experimental.nogc but we know from Marketing 101 that

  1   2   >