[Issue 14956] C++ Mangling incompatible with C++11

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14956 Sahmi Soulaïman (سليمان السهمي) changed: What|Removed |Added CC|

Re: Converting a string[] to char**

2017-05-08 Thread ag0aep6g via Digitalmars-d-learn
On 05/09/2017 06:22 AM, David Zhang wrote: I'm playing around with Vulkan, and part of its initialization code calls for an array of strings as char**. I've tried casting directly (cast(char**)) and breaking it down into an array of char*s (char*[]) before getting the pointer to its first

Re: Converting a string[] to char**

2017-05-08 Thread rikki cattermole via Digitalmars-d-learn
On 09/05/2017 5:22 AM, David Zhang wrote: Hi, I'm playing around with Vulkan, and part of its initialization code calls for an array of strings as char**. I've tried casting directly (cast(char**)) and breaking it down into an array of char*s (char*[]) before getting the pointer to its first

Re: What are we going to do about mobile?

2017-05-08 Thread Jerry via Digitalmars-d
On Thursday, 6 April 2017 at 05:24:07 UTC, Joakim wrote: That means this tidal wave of mobile swamping PCs is only going to get worse: https://twitter.com/lukew/status/842397687420923904 D is currently built and optimized for that dying PC platform. There are only two devs working on

DConf 2017 Hackathon report

2017-05-08 Thread Ali Çehreli via Digitalmars-d
Please list what we've achieved during the hackathon, including what is started but is likely to be finished in the coming days or months. For me: - Finished updating "Programming in D" to 2.074.0 (the HTML is now up to date but I could not get to the still manual work of preparing the

Converting a string[] to char**

2017-05-08 Thread David Zhang via Digitalmars-d-learn
Hi, I'm playing around with Vulkan, and part of its initialization code calls for an array of strings as char**. I've tried casting directly (cast(char**)) and breaking it down into an array of char*s (char*[]) before getting the pointer to its first element ([0]). It provides the correct

Re: Static foreach pull request

2017-05-08 Thread Timon Gehr via Digitalmars-d
On 09.05.2017 05:06, Timon Gehr wrote: ... Some examples: https://github.com/tgehr/dmd/blob/71ab1280c88f9f0922fabf89ab3e7e1164b70e8b/src/test_staticforeach.d Better link: https://github.com/tgehr/dmd/blob/static-foreach/src/test_staticforeach.d

Re: Fantastic exchange from DConf

2017-05-08 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/08/2017 08:42 PM, John Carter wrote: On Monday, 8 May 2017 at 20:55:02 UTC, John Carter wrote: C/C++ has been granted an extension of life by the likes of valgrind and purify and *-sanitizer. Google makes my point for me

Re: Fantastic exchange from DConf

2017-05-08 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/08/2017 04:55 PM, John Carter wrote: On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter: I believe memory safety will kill C. C/C++ has been granted an extension of life by the likes of valgrind and purify and *-sanitizer. I think you will find everything that really

Static foreach pull request

2017-05-08 Thread Timon Gehr via Digitalmars-d
Code: https://github.com/dlang/dmd/pull/6760 Some examples: https://github.com/tgehr/dmd/blob/71ab1280c88f9f0922fabf89ab3e7e1164b70e8b/src/test_staticforeach.d This is a complete proof-of-concept implementation of "static foreach". The semantics of the construct are given by merging the

Re: Jonathan Blow's presentation

2017-05-08 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/08/2017 09:21 AM, Rel wrote: What do you guys think of the points explained here: https://www.youtube.com/watch?v=gWv_vUgbmug Watched the first 15-20 min of it. Definitely want to watch the rest. Buu.so far it's a good example of the *one* little thing that kinda bugs me

Re: Error writing file a *.obj

2017-05-08 Thread dummy via Digitalmars-d-learn
On Monday, 8 May 2017 at 12:29:27 UTC, bachmeier wrote: On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote: When i build some application with dub, i got this error: I'm not a Dub user, but it has its own forum, so you might want to try there: http://forum.rejectedsoftware.com/ Oh, i

Re: Jonathan Blow's presentation

2017-05-08 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/08/2017 09:57 PM, Meta wrote: Ok, fair point. Let's look at Final Fantasy XIII (linear, non-open world console RPG released in 2009 on X360 and PS3, recently ported to PC) and The Witcher 3 (huge open world PC RPG released in 2015). FFXIII's size on disk is 60(!) GB, while The Witcher 3

Re: Jonathan Blow's presentation

2017-05-08 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/08/2017 03:28 PM, Jack Stouffer wrote: Skyrim was that size on release because the console version had to fit on a DVD for the xbox 360 version, plus they made almost no changes to the PC version of the game. GTA V however, was released several months after the console release and had

D to C# conversion of GPS Data

2017-05-08 Thread Tom via Digitalmars-d
Does anyone know how to convert this D code to C# ? string[] parse_gps_data(string data, SysTime start_time, SysTime end_time) { // Validate input string[] gps; if (!data.length) { error("Empty GPS file"); return gps; }

Re: Jonathan Blow's presentation

2017-05-08 Thread Meta via Digitalmars-d
On Monday, 8 May 2017 at 19:28:51 UTC, Jack Stouffer wrote: On Monday, 8 May 2017 at 19:14:16 UTC, Meta wrote: On Monday, 8 May 2017 at 19:11:03 UTC, Ethan Watson wrote: You know, unless you want to try making a 45 gigabyte executable for current Playstation/Xbox games. Is this why most

Re: Fantastic exchange from DConf

2017-05-08 Thread John Carter via Digitalmars-d
On Monday, 8 May 2017 at 20:55:02 UTC, John Carter wrote: On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter: I believe memory safety will kill C. C/C++ has been granted an extension of life by the likes of valgrind and purify and *-sanitizer. Google makes my point for me

[Issue 17375] colliding modules detected with binutils 2.28 linker and shared libraries

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17375 --- Comment #3 from Martin Nowak --- Also see https://sourceware.org/bugzilla/show_bug.cgi?id=20995 and http://sourceware-org.1504.n7.nabble.com/dynrelro-section-for-read-only-dynamic-symbols-copied-into-executable-td429858.html for

[Issue 17375] colliding modules detected with binutils 2.28 linker and shared libraries

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17375 Martin Nowak changed: What|Removed |Added Summary|copy relocated ModuleInfos |colliding modules detected

Re: What are we going to do about mobile?

2017-05-08 Thread Dmitry Olshansky via Digitalmars-d
On 5/8/17 9:26 PM, Bienlein wrote: Let's not forget Kotlin and Swift, things we'd really be competing against - that is the other NEW stuff. Kotlin/Native is now in the making and there is already a preview:

[Issue 17385] Too much commands

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17385 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #1 from

Re: Looking for an equivalent to C++ std::getline in D

2017-05-08 Thread Ali Çehreli via Digitalmars-d-learn
On 05/06/2017 02:24 AM, Stanislav Blinov wrote: > auto input = args[1].splitter('/').filter!((string s) { return !s.empty; > })(); > > or a template lambda: > > auto input = arga[1].splitter('/').filter!((s) => !s.empty)(); Not necessarily better but worth mentioning: import std.functional

[Issue 17385] New: Too much commands

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17385 Issue ID: 17385 Summary: Too much commands Product: D Version: D2 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P1

Re: DLang quarterly EU?

2017-05-08 Thread Joseph Rushton Wakeling via Digitalmars-d
On Monday, 8 May 2017 at 20:45:57 UTC, Johan Engelen wrote: Can we get a cool acronym / name for this thing? Helps when talking with people about it. ;-) DBeers? That's a diamond name ;-)

Structure of platform specific vs non platform specific code

2017-05-08 Thread Igor via Digitalmars-d-learn
Hi, I am following Casey Muratori's Handmade Hero and writing it in DLang. I got to Day 011: The Basics of Platform API Design where Casey explains the best way to structure platform specific vs non-platform specific code but his method cannot work in DLang since it uses modules and I am

Re: DLang quarterly EU?

2017-05-08 Thread jj via Digitalmars-d
On Monday, 8 May 2017 at 21:02:22 UTC, Moritz Maxeiner wrote: On Monday, 8 May 2017 at 20:45:57 UTC, Johan Engelen wrote: Can we get a cool acronym / name for this thing? Helps when talking with people about it. ;-) Deuconf? how about we get it first to work for everybody. win-deu-conf

Re: Deprecation: foo.bar is not visible from module traits

2017-05-08 Thread Ali Çehreli via Digitalmars-d-learn
Known issue: https://issues.dlang.org/buglist.cgi?quicksearch=getSymbolsByUDA Ali

Re: DLang quarterly EU?

2017-05-08 Thread Moritz Maxeiner via Digitalmars-d
On Monday, 8 May 2017 at 20:45:57 UTC, Johan Engelen wrote: Can we get a cool acronym / name for this thing? Helps when talking with people about it. ;-) Deuconf?

Re: Fantastic exchange from DConf

2017-05-08 Thread Moritz Maxeiner via Digitalmars-d
On Monday, 8 May 2017 at 18:33:08 UTC, Jerry wrote: Anything that goes on the internet already has memory safety. Bait [1]? The things that need it aren't written in C Except - of course - for virtually all of our entire digital infrastructure. there's a lot of programs out there that

Re: Fantastic exchange from DConf

2017-05-08 Thread John Carter via Digitalmars-d
On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter: I believe memory safety will kill C. C/C++ has been granted an extension of life by the likes of valgrind and purify and *-sanitizer. I think you will find everything that really matters and is internet facing has been run up

Re: DLang quarterly EU?

2017-05-08 Thread Johan Engelen via Digitalmars-d
On Saturday, 6 May 2017 at 23:53:45 UTC, Ethan Watson wrote: Rather than a city meet up monthly, what about a continental meet up quarterly? Can we get a cool acronym / name for this thing? Helps when talking with people about it. ;-) cheers, Johan

Re: Snap packages for DMD and DUB

2017-05-08 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Monday, 8 May 2017 at 20:23:36 UTC, bachmeier wrote: Thanks for making these available. I needed to install ldc today, so I used the snap package. Installation was trivial (Ubuntu 16.04). That's great to hear. Note that it's also trivial to swap between the current stable release and the

Re: Jonathan Blow's presentation

2017-05-08 Thread bachmeier via Digitalmars-d
On Monday, 8 May 2017 at 19:11:03 UTC, Ethan Watson wrote: unless you want to try making a 45 gigabyte executable for current Playstation/Xbox games Just yesterday I was listening to my son cursing his Xbox as it downloaded 72 GB before he could play his game...

Re: Snap packages for DMD and DUB

2017-05-08 Thread bachmeier via Digitalmars-d-announce
On Monday, 8 May 2017 at 20:05:01 UTC, Joseph Rushton Wakeling wrote: Hello all, [...] Enjoy, and let me know how you all get on with these packages! For more info on snap packages and how to use (and create) them, see: https://snapcraft.io Thanks & best wishes, -- Joe Thanks for

Re: Fantastic exchange from DConf

2017-05-08 Thread Jack Stouffer via Digitalmars-d
On Monday, 8 May 2017 at 19:37:05 UTC, Jack Stouffer wrote: ... Wrong link https://forum.dlang.org/post/novsplitocprdvpoo...@forum.dlang.org

Re: Fantastic exchange from DConf

2017-05-08 Thread Jack Stouffer via Digitalmars-d
On Monday, 8 May 2017 at 18:33:08 UTC, Jerry wrote: Anything that goes on the internet already has memory safety. BS, a damn buffer overflow bug caused cloudflare to spew its memory all over the internet just a couple of months ago. Discussed here

Re: Jonathan Blow's presentation

2017-05-08 Thread Jack Stouffer via Digitalmars-d
On Monday, 8 May 2017 at 19:14:16 UTC, Meta wrote: On Monday, 8 May 2017 at 19:11:03 UTC, Ethan Watson wrote: You know, unless you want to try making a 45 gigabyte executable for current Playstation/Xbox games. Is this why most console games that get ported to PC are massive? GTA V on PC,

Re: What are we going to do about mobile?

2017-05-08 Thread Bienlein via Digitalmars-d
Let's not forget Kotlin and Swift, things we'd really be competing against - that is the other NEW stuff. Kotlin/Native is now in the making and there is already a preview: https://blog.jetbrains.com/kotlin/2017/04/kotlinnative-tech-preview-kotlin-without-a-vm/

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-05-08 Thread Bienlein via Digitalmars-d
On Friday, 21 April 2017 at 17:20:14 UTC, Vasudev Ram wrote: Hi list, I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)? The question occurred to me somehow while browsing some D posts

Re: Jonathan Blow's presentation

2017-05-08 Thread Meta via Digitalmars-d
On Monday, 8 May 2017 at 19:11:03 UTC, Ethan Watson wrote: You know, unless you want to try making a 45 gigabyte executable for current Playstation/Xbox games. Is this why most console games that get ported to PC are massive? GTA V on PC, for example, was 100GB, while Skyrim was around 8GB.

Re: Jonathan Blow's presentation

2017-05-08 Thread Ethan Watson via Digitalmars-d
On Monday, 8 May 2017 at 16:10:51 UTC, Rel wrote: I don't know if I ever will need it in my code. For the game development use case it may be useful, for example to package all of the game assets at compile time. It's only useful for very select cases when hardcoded assets are required. You

[Issue 17384] LDC x64 linker error in VS2017

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17384 ki...@gmx.net changed: What|Removed |Added CC||ki...@gmx.net --- Comment #1 from

Thoughts on some code breakage with 2.074

2017-05-08 Thread Brian Schott via Digitalmars-d
Recently the EMSI data department upgraded the compiler we use to build our data processing code to 2.074. This caused several of the thousands of processes to die with signal 8 (floating point exceptions). This was caused by the fix to issue 17243. This is a good thing. We need more breaking

Re: Fantastic exchange from DConf

2017-05-08 Thread Jerry via Digitalmars-d
Anything that goes on the internet already has memory safety. The things that need it aren't written in C, there's a lot of programs out there that just don't require it. C won't be killed, there's too much already written in it. Sure there might be nothing new getting written in it but there

[Issue 17384] New: LDC x64 linker error in VS2017

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17384 Issue ID: 17384 Summary: LDC x64 linker error in VS2017 Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1

Re: Productive vibe.d dev environment (IDE, debugger) on Linux?

2017-05-08 Thread crimaniak via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 17:43:07 UTC, kinke wrote: can anyone recommend a more or less production-ready dev environment for vibe.d on Linux? I'm evaluating vibe.d against Phoenix (Elixir/Erlang) for a new project. Today I gave Visual Studio Code a quick shot (with LDC 1.1.1 and DMD

Re: D support for the Meson build system

2017-05-08 Thread Matthias Klumpp via Digitalmars-d-announce
Btw, to make Meson and other build systems work really well, we would need this bug fixed in DMDFE: https://issues.dlang.org/show_bug.cgi?id=16746 At the moment, one needs to ninja clean way too often to get a good build.

[Issue 17351] Static const array can't be evaluated at compile time when passed as ref argument

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17351 Mathias Lang changed: What|Removed |Added CC|

Re: Jonathan Blow's presentation

2017-05-08 Thread Rel via Digitalmars-d
On Monday, 8 May 2017 at 14:47:36 UTC, Ethan Watson wrote: I can answer #1, I know a few things there but that's more something he should talk about as I don't know how public he's made that knowledge. Well, I know that DMD in particular made a trade off not to collect garbage during the

Re: Mir Algorithm v0.5.8: Interpolation, Timeseries and 17 new functions

2017-05-08 Thread jmh530 via Digitalmars-d-announce
On Monday, 8 May 2017 at 14:26:35 UTC, jmh530 wrote: mir.timeseries is a welcome addition. Calling (time, data) pairs moments will confuse because moment has another meaning in statistics. Perhaps observation? Head and tail are also pretty common timeseries functions (probably would need to

[Issue 17383] New: ICE ddmd/backend/cgxmm.c 930

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17383 Issue ID: 17383 Summary: ICE ddmd/backend/cgxmm.c 930 Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1

Re: DCOnf 2017 videos online

2017-05-08 Thread Stanislav Blinov via Digitalmars-d-announce
On Monday, 8 May 2017 at 15:10:37 UTC, Jack Stouffer wrote: On Sunday, 7 May 2017 at 18:11:47 UTC, Patrick Schluter wrote: It looks like the good people of Sociomantic have already posted videos of the Dconf2017 on youtube. https://www.youtube.com/channel/UC54uUlXuGhigMsdaNtP6THQ Enjoy.

Re: DCOnf 2017 videos online

2017-05-08 Thread Jack Stouffer via Digitalmars-d-announce
On Sunday, 7 May 2017 at 18:11:47 UTC, Patrick Schluter wrote: It looks like the good people of Sociomantic have already posted videos of the Dconf2017 on youtube. https://www.youtube.com/channel/UC54uUlXuGhigMsdaNtP6THQ Enjoy. Anyone know why the Q section of Walter's talk was muted?

[Issue 14402] std.conv.emplace segfaults for nested types

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14402 --- Comment #4 from Nick Treleaven --- https://github.com/dlang/phobos/pull/5379 --

Re: Jonathan Blow's presentation

2017-05-08 Thread Ethan Watson via Digitalmars-d
On Monday, 8 May 2017 at 13:21:07 UTC, Rel wrote: What do you guys think of the points explained here: https://www.youtube.com/watch?v=gWv_vUgbmug Seems like the language shares a lot of features with D programming language. However there are several features that caught my interest: 1) The

Re: Mir Algorithm v0.5.8: Interpolation, Timeseries and 17 new functions

2017-05-08 Thread jmh530 via Digitalmars-d-announce
On Monday, 8 May 2017 at 08:51:32 UTC, 9il wrote: ## New modules ... Great work. Some comments: mir.timeseries is a welcome addition. Calling (time, data) pairs moments will confuse because moment has another meaning in statistics. Perhaps observation? Head and tail are also pretty common

Re: reasoning of evaluating code after return in current block (static if return)

2017-05-08 Thread Stefan Koch via Digitalmars-d
On Sunday, 7 May 2017 at 23:41:00 UTC, bastien penavayre wrote: On Sunday, 7 May 2017 at 23:20:26 UTC, Adam D. Ruppe wrote: [...] I just realized that I accidentally posted this while editing. I agree with you on that this is barely different from just adding "else". [...] compile your

Re: Error writing file a *.obj

2017-05-08 Thread dummy via Digitalmars-d-learn
On Monday, 8 May 2017 at 12:29:27 UTC, bachmeier wrote: On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote: When i build some application with dub, i got this error: I'm not a Dub user, but it has its own forum, so you might want to try there: http://forum.rejectedsoftware.com/ thank you

[Issue 17361] latest windows 10 insider preview and dmd no longer runs.

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17361 --- Comment #4 from steven kladitis --- just updated to another level of Windows Insider and still DMD does not run. I send to Microsoft. --

Re: DCOnf 2017 videos online

2017-05-08 Thread jmh530 via Digitalmars-d-announce
On Monday, 8 May 2017 at 03:23:50 UTC, WhatMeForget wrote: Wow. That was quick! Much faster than last year!

Jonathan Blow's presentation

2017-05-08 Thread Rel via Digitalmars-d
What do you guys think of the points explained here: https://www.youtube.com/watch?v=gWv_vUgbmug Seems like the language shares a lot of features with D programming language. However there are several features that caught my interest: 1) The compile times seems very fast in comparison with other

[Issue 9631] Error message not using fully qualified name when appropriate.

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9631 --- Comment #12 from Adam D. Ruppe --- > Fully qualifying all types in error messages leads to unreadable error > messages. I would say if the compiler ever sees `if(t1.toChars == t2.toChars) print toPrettyChars instead`.

Re: get vtable size

2017-05-08 Thread Basile B. via Digitalmars-d-learn
On Sunday, 7 May 2017 at 04:01:43 UTC, Mike B Johnson wrote: how many elements(virtual functions) are in the __vptr? You don't need the size. The index you get with __traits(virtualIndex) is always valid. (https://dlang.org/spec/traits.html#getVirtualIndex) However as an exercise you can

[Issue 14402] std.conv.emplace segfaults for nested types

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14402 Nick Treleaven changed: What|Removed |Added Keywords|ice |accepts-invalid

[Issue 17353] is expression type specialization matching strips const

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17353 Nemanja Boric <4bur...@gmail.com> changed: What|Removed |Added CC||4bur...@gmail.com --

Re: Looking for an equivalent to C++ std::getline in D

2017-05-08 Thread Ola Fosheim Grøstad via Digitalmars-d-learn
On Monday, 8 May 2017 at 11:41:02 UTC, Daniel N wrote: Stack-Overflow usage is clearly not representative of language usage. 1) Our forum is flourishing, why would any D developer use SO? 2) The number of questions is directly proportional with the difficulty of the language.(D is quite easy

Re: Error writing file a *.obj

2017-05-08 Thread bachmeier via Digitalmars-d-learn
On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote: When i build some application with dub, i got this error: I'm not a Dub user, but it has its own forum, so you might want to try there: http://forum.rejectedsoftware.com/

Re: Error writing file a *.obj

2017-05-08 Thread dummy via Digitalmars-d-learn
On Sunday, 7 May 2017 at 14:01:32 UTC, dummy wrote: Hi :) - OS: Winodws 10 Pro KN - DMD: 2.073.2(ofcourse, i tried dmd of 2.074.x version. but same result) When i build some application with dub, i got this error: --

Re: Looking for an equivalent to C++ std::getline in D

2017-05-08 Thread Daniel N via Digitalmars-d-learn
On Monday, 8 May 2017 at 10:51:52 UTC, Ola Fosheim Grøstad wrote: On Sunday, 7 May 2017 at 20:50:10 UTC, Patrick Schluter wrote: If you look on TIOBE [1] newest stats, D does not look so bad after all. It's ranked 23 with a 1.38% share. The so Tiobe is a "hoax". Stack overflow counts for

Re: get vtable size

2017-05-08 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-05-07 06:01, Mike B Johnson wrote: how many elements(virtual functions) are in the __vptr? I guess you can use __traits(allMembers) and __traits(isVirtualMethod) [1]. [1] http://dlang.org/spec/traits.html -- /Jacob Carlborg

Re: Looking for an equivalent to C++ std::getline in D

2017-05-08 Thread Ola Fosheim Grøstad via Digitalmars-d-learn
Here is another metric, number of star the main compiler has on github: Chapel: 437 Coq: 618 Ocaml: 1,258 Dmd: 1,574 Haxe: 1,865 Nim: 3,598 Crystal: 8,064 Scala: 8,158 Julia: 8,569 Rust: 21,684 TypeScript: 21,748 Go: 27,702

Re: Why does this compile (method in class without return type)

2017-05-08 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-05-03 14:50, Adam D. Ruppe wrote: No accident there, the spec says any storage class will do: http://dlang.org/spec/function.html#auto-functions "An auto function is declared without a return type. If it does not already have a storage class, use the auto storage class. " I see. --

[Issue 9631] Error message not using fully qualified name when appropriate.

2017-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9631 Andreas Reischuck changed: What|Removed |Added CC||arbm...@gmail.com ---

Re: Looking for an equivalent to C++ std::getline in D

2017-05-08 Thread Ola Fosheim Grøstad via Digitalmars-d-learn
On Sunday, 7 May 2017 at 20:50:10 UTC, Patrick Schluter wrote: If you look on TIOBE [1] newest stats, D does not look so bad after all. It's ranked 23 with a 1.38% share. The so Tiobe is a "hoax". Stack overflow counts for alternative languages: "swift": 146,374 "scala": 65,594 "go": 22,212

Re: File Input

2017-05-08 Thread k-five via Digitalmars-d-learn
On Monday, 8 May 2017 at 10:22:53 UTC, JV wrote: On Monday, 8 May 2017 at 09:26:48 UTC, k-five wrote: On Monday, 8 May 2017 at 08:54:50 UTC, JV wrote: --- If I continue to learn D I will do but there is no guarantee and it got ready :)

Re: File Input

2017-05-08 Thread JV via Digitalmars-d-learn
On Monday, 8 May 2017 at 09:26:48 UTC, k-five wrote: On Monday, 8 May 2017 at 08:54:50 UTC, JV wrote: [...] --- Do not worry. Your request is not rude. I give you a better tool. I finished to collect some examples in D and in a few days I will

Re: DCOnf 2017 videos online

2017-05-08 Thread Mike Parker via Digitalmars-d-announce
On Monday, 8 May 2017 at 01:42:49 UTC, Jack Stouffer wrote: https://www.youtube.com/playlist?list=PL3jwVPmk_PRxo23yyoc0Ip_cP3-rCm7eB I assume you're handling the reddit post? Yeah, I'll post it once the videos are all uploaded.

Re: File Input

2017-05-08 Thread k-five via Digitalmars-d-learn
On Monday, 8 May 2017 at 08:54:50 UTC, JV wrote: On Sunday, 7 May 2017 at 16:40:50 UTC, k-five wrote: On Sunday, 7 May 2017 at 15:59:25 UTC, JV wrote: --- Do not worry. Your request is not rude. I give you a better tool. I finished to collect

Re: Looking for an equivalent to C++ std::getline in D

2017-05-08 Thread k-five via Digitalmars-d-learn
On Sunday, 7 May 2017 at 20:50:10 UTC, Patrick Schluter wrote: On Sunday, 7 May 2017 at 13:16:16 UTC, bachmeier wrote: On Sunday, 7 May 2017 at 10:33:25 UTC, k-five wrote: --- When I want to learn to code, I asked in some forums about it,

Mir Algorithm v0.5.8: Interpolation, Timeseries and 17 new functions

2017-05-08 Thread 9il via Digitalmars-d-announce
## New modules - mir.interpolation - mir.interpolation.linear - mir.interpolation.pchip - mir.timeseries - mir.ndslice.mutation: transposeInPlace ## New functions for existing modules - mir.ndslice.topology: diff - mir.ndslice.topology: slide - mir.ndslice.algorithm: findIndex -

Re: File Input

2017-05-08 Thread JV via Digitalmars-d-learn
On Sunday, 7 May 2017 at 16:40:50 UTC, k-five wrote: On Sunday, 7 May 2017 at 15:59:25 UTC, JV wrote: [...] [...] -- You have the right for confusing :) there is many read and write names. But I assumed you are familiar

Re: DIP 1004 Preliminary Review Round 1

2017-05-08 Thread Andrej Mitrovic via Digitalmars-d
On Monday, 1 May 2017 at 14:55:28 UTC, Mike Parker wrote: DIP 1004 is titled "Inherited Constructors. Mike, given the general feedback I've received here, I think the next best take of action is to split the implicit inheritance proposal into a separate, smaller DIP, and update DIP 1004