Re: std.data.json formal review

2018-10-09 Thread Nicholas Wilson via Digitalmars-d
On Tuesday, 9 October 2018 at 18:07:44 UTC, Márcio Martins wrote: On Tuesday, 28 July 2015 at 14:07:19 UTC, Atila Neves wrote: Start of the two week process, folks. Code: https://github.com/s-ludwig/std_data_json Docs: http://s-ludwig.github.io/std_data_json/ Atila Sorry for the late ping,

[Issue 19096] [REG 2.061] Proper error messages are not shown for templates that go beyond two deep, wrongly says no template overload matches

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19096 Nicholas Wilson changed: What|Removed |Added CC||iamthewilsona...@hotmail.co

Re: std.data.json formal review

2018-10-09 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, October 9, 2018 5:45:02 PM MDT Nicholas Wilson via Digitalmars-d wrote: > On Tuesday, 9 October 2018 at 18:07:44 UTC, Márcio Martins wrote: > > On Tuesday, 28 July 2015 at 14:07:19 UTC, Atila Neves wrote: > >> Start of the two week process, folks. > >> > >> Code:

[Issue 15147] std.random.uniform return value depends on integer size

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15147 --- Comment #2 from Jon Degenhardt --- I'm interested in this, as I use these properties extensively for unit tests in randomization routines. Is it also a capability intended to be supported by some of my tools. The formulation of the unit tests

[Issue 19293] Qualified inherited class does not have any effect

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19293 Nicholas Wilson changed: What|Removed |Added Keywords||accepts-invalid CC|

[Issue 15147] std.random.uniform return value depends on integer size

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15147 Jon Degenhardt changed: What|Removed |Added CC||jrdemail2000-dl...@yahoo.co

How do you iterate "vertically" over a 2-D array?

2018-10-09 Thread Chris Katko via Digitalmars-d-learn
I have a 2-D array: int[5][5] data = [ [1, 0, 1, 0, 0], [1, 0, 1, 0, 0], [1, 0, 1, 1, 1], [1, 0, 0, 1, 0], [1, 1, 1, 1, 0] ]; 1 - Is there a way to foreach vertically through that? (that is,

[Issue 5363] const + alias this = wrong code

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5363 calex changed: What|Removed |Added CC||calex+bugzilla-mail@aristow |

Re: Linking with a non-default druntime

2018-10-09 Thread Per Nordlöw via Digitalmars-d-learn
On Tuesday, 2 October 2018 at 13:07:04 UTC, Basile B. wrote: On Monday, 1 October 2018 at 11:10:07 UTC, Per Nordlöw wrote: On Monday, 1 October 2018 at 08:27:54 UTC, Basile B. wrote: I think so. Apparently it's registered with a string, e.g "manual" and you pass a special druntime option with

Process Pipes

2018-10-09 Thread Gorker via Digitalmars-d-learn
Hi all, I'm on macOS 10.11.6 with dmd 2.081.2 and I've a problem with std.process. --- gork ():foo gorker$ gcc -c -Iinclude -o foo.cpp.o src/foo.cpp In file included from src/foo.cpp:2: include/foo/foo.hpp:22:10: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]

Re: How do you iterate "vertically" over a 2-D array?

2018-10-09 Thread Stanislav Blinov via Digitalmars-d-learn
On Tuesday, 9 October 2018 at 10:52:47 UTC, Chris Katko wrote: I have a 2-D array: 1 - Is there a way to foreach vertically through that? (that is, rotated 90 degrees from the usual iteration.) 2 - Is there a way to send that "vertical slice" to a function? Not built-in in the language,

Re: How do you iterate "vertically" over a 2-D array?

2018-10-09 Thread Chris Katko via Digitalmars-d-learn
On Tuesday, 9 October 2018 at 10:52:47 UTC, Chris Katko wrote: I have a 2-D array: int[5][5] data = [ [1, 0, 1, 0, 0], [1, 0, 1, 0, 0], [1, 0, 1, 1, 1], [1, 0, 0, 1, 0], [1, 1, 1, 1, 0] ]; 1 - Is

[Issue 6777] alias this disables casting for classes

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6777 calex changed: What|Removed |Added CC||calex+bugzilla-mail@aristow |

[Issue 19295] New: ICE when taking address of member function passed as template parameter

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19295 Issue ID: 19295 Summary: ICE when taking address of member function passed as template parameter Product: D Version: D2 Hardware: x86 OS: Windows

Copy parameters from function passed as an alias

2018-10-09 Thread bauss via Digitalmars-d-learn
Is there a way to copy parameters from a passed function as an alias. Ex: void foo(alias fun)(...); where ... should be the parameters of fun. Of course std.traits.Parameters works like: void foo(alias fun)(Parameters!fun); But the catch is that you don't get the identifiers. So what is

Re: How do you iterate "vertically" over a 2-D array?

2018-10-09 Thread jmh530 via Digitalmars-d-learn
On Tuesday, 9 October 2018 at 10:52:47 UTC, Chris Katko wrote: I have a 2-D array: int[5][5] data = [ [1, 0, 1, 0, 0], [1, 0, 1, 0, 0], [1, 0, 1, 1, 1], [1, 0, 0, 1, 0], [1, 1, 1, 1, 0] ]; 1 - Is

Re: Is there an efficient byte buffer queue?

2018-10-09 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/8/18 6:31 AM, Nicholas Wilson wrote: On Monday, 8 October 2018 at 09:39:55 UTC, John Burton wrote: My use case is sending data to a socket. One part of my program generates blocks of bytes, and the socket part tries to send them to the socket and then removes from the queue the number

[Issue 19284] alias this not used in nested functions of a method

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19284 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #2 from

[Issue 5973] alias this is not considered with superclass lookup

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5973 RazvanN changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

Re: Deep nesting vs early returns

2018-10-09 Thread Johan Engelen via Digitalmars-d
On Tuesday, 2 October 2018 at 18:14:55 UTC, Andrei Alexandrescu wrote: Kate Gregory makes a good argument on something I've often commented in code reviews: https://youtu.be/n0Ak6xtVXno?t=2682 I very much like LLVM's practices, and one of them is it's Coding Standards. It prescribes early

Can i watch folders/files for changes with D language?

2018-10-09 Thread Ephrahim via Digitalmars-d-learn
Hi Everyone, i'm planning on developing a software for synchronizing folder contents across multiple computers. The software will evolve very quickly into virtual Remote Desktop Access system. So i've been considering C++ for this, its the best in the market of all things fast at the moment

[Issue 5380] alias this is not considered with superclass lookup

2018-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5380 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #6 from

Re: std.data.json formal review

2018-10-09 Thread Basile B. via Digitalmars-d
On Tuesday, 9 October 2018 at 18:07:44 UTC, Márcio Martins wrote: On Tuesday, 28 July 2015 at 14:07:19 UTC, Atila Neves wrote: Start of the two week process, folks. Code: https://github.com/s-ludwig/std_data_json Docs: http://s-ludwig.github.io/std_data_json/ Atila Sorry for the late ping,

Re: Can i watch folders/files for changes with D language?

2018-10-09 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 9 October 2018 at 17:20:25 UTC, Ephrahim wrote: So i need your help guys, can you point me to any documentation or libraries i can use to watch files/folders for changes (delete, edit, new content)? This package seems to do what you need: https://code.dlang.org/packages/fswatch

Re: std.data.json formal review

2018-10-09 Thread Márcio Martins via Digitalmars-d
On Tuesday, 28 July 2015 at 14:07:19 UTC, Atila Neves wrote: Start of the two week process, folks. Code: https://github.com/s-ludwig/std_data_json Docs: http://s-ludwig.github.io/std_data_json/ Atila Sorry for the late ping, but it's been 3 years - what has happened to this? Has it been

Re: Can i watch folders/files for changes with D language?

2018-10-09 Thread Daniel Kozak via Digitalmars-d-learn
You can use vibed: http://vibed.org/api/vibe.core.file/DirectoryWatcher Or just vibe-core https://code.dlang.org/packages/vibe-core Or https://code.dlang.org/packages/eventcore As a bonus you can use it for networking too. About GUI I do not know what is the best solution. I have some experience