Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Bauss via Digitalmars-d
On Sunday, 11 January 2015 at 14:03:05 UTC, Adam D. Ruppe wrote: Reddit seems to have a constant stream of "random project in Go" posts. There was one this week that was a "command line websocket" and it was like 40 lines of code. Come on. I'm tempted to start posting every little thing I writ

Re: D beyond the specs

2018-03-16 Thread bauss via Digitalmars-d
On Friday, 16 March 2018 at 13:51:03 UTC, Chris wrote: On Friday, 16 March 2018 at 12:43:03 UTC, psychoticRabbit wrote: On Friday, 16 March 2018 at 11:44:59 UTC, Chris wrote: Hint: there's a Ph.D. in it ;) Hint: Do not write a Ph.D based on impressions ;-) Hint: Do not write a Ph.D. at all

Re: OT: Behaviour of Experienced Programmers Towards Newcomers

2018-03-17 Thread bauss via Digitalmars-d
On Saturday, 17 March 2018 at 07:16:22 UTC, Jonathan M Davis wrote: On Saturday, March 17, 2018 07:01:53 rumbu via Digitalmars-d wrote: On Saturday, 17 March 2018 at 06:46:17 UTC, Uknown wrote: I haven't really noticed any of what he > mentions in the D community 3 days ago: https://forum.

Re: OT: Behaviour of Experienced Programmers Towards Newcomers

2018-03-18 Thread bauss via Digitalmars-d
On Sunday, 18 March 2018 at 06:28:11 UTC, Amorphorious wrote: We might as well add an IQ test too it, the one with the lower IQ kills himself and does the rest of humanity a favor? Or is this another deal you will reject? Just wow.

This week in D

2018-03-19 Thread bauss via Digitalmars-d
Has it stopped completely or is it just temporary? There hasn't been anything since November: http://arsdnet.net/this-week-in-d/2017-nov-26.html

Re: help cast

2018-03-19 Thread bauss via Digitalmars-d
On Monday, 19 March 2018 at 11:20:05 UTC, Steven Schveighoffer wrote: On 3/18/18 4:07 PM, Jonathan M Davis wrote: That's exactly what it's doing, and when you have multiple elements in the literal, it quickly gets a lot more pleasant than casting each element individually. e.g. cast(ubyte[])

Re: This week in D

2018-03-19 Thread bauss via Digitalmars-d
On Monday, 19 March 2018 at 14:11:24 UTC, Adam D. Ruppe wrote: On Monday, 19 March 2018 at 10:04:15 UTC, bauss wrote: Has it stopped completely or is it just temporary? I want to restart it with a 2.0 thing probably monthly instead of weekly (well I might generate the link list automatically

Re: #dbugfix Issue 5710

2018-03-20 Thread bauss via Digitalmars-d
On Tuesday, 20 March 2018 at 00:00:22 UTC, ciechowoj wrote: Digging out and old yet important issue. And to quote Andrei: "We need to pursue this like a bloodhound and aggressively make as many cases as possible work transparently. This is a major asset of D over virtually all other language

Re: #dbugfix 17592

2018-03-21 Thread bauss via Digitalmars-d
On Tuesday, 20 March 2018 at 21:27:53 UTC, 12345swordy wrote: This is very important to me as I am very interested in using the language for game development. Yes I know that it's marked as "Duplicated", but I strongly disagree as it is different enough to consider is own issue. Alex The g

Re: D, Parasail, Pascal, and Rust vs The Steelman

2018-03-21 Thread bauss via Digitalmars-d
On Wednesday, 21 March 2018 at 12:52:19 UTC, Paulo Pinto wrote: An article comparing the above languages as per the DoD language requirements [0]. http://jedbarber.id.au/steelman.html [0] - https://en.wikipedia.org/wiki/Steelman_language_requirements It seems very biased with the "partial?"

Re: D, Parasail, Pascal, and Rust vs The Steelman

2018-03-22 Thread bauss via Digitalmars-d
On Thursday, 22 March 2018 at 14:49:17 UTC, Ali wrote: On Thursday, 22 March 2018 at 11:16:37 UTC, Atila Neves wrote: On Wednesday, 21 March 2018 at 12:52:19 UTC, Paulo Pinto wrote: An article comparing the above languages as per the DoD language requirements [0]. http://jedbarber.id.au/steel

Re: CTFE ^^ (pow)

2018-03-23 Thread bauss via Digitalmars-d
On Friday, 23 March 2018 at 09:37:26 UTC, Norm wrote: I think the main reason for this is because they expect a C++/Python like experience where your rarely hit a compiler/interpreter bug. Cheers, Norm What do you mean? https://gcc.gnu.org/bugzilla/buglist.cgi?component=c%2B%2B&product=gc

Re: code.dlang.org having problems?

2018-03-26 Thread bauss via Digitalmars-d
On Saturday, 24 March 2018 at 20:31:48 UTC, H. S. Teoh wrote: On Sat, Mar 24, 2018 at 04:59:49PM +, Russel Winder via Digitalmars-d wrote: On Sat, 2018-03-24 at 09:45 -0700, H. S. Teoh via Digitalmars-d wrote: > […] > > That is why a sane build system should always cache > dependencies lo

Re: D mentioned in Infoworld

2018-03-26 Thread bauss via Digitalmars-d
On Monday, 26 March 2018 at 16:13:17 UTC, Joakim wrote: On Monday, 26 March 2018 at 15:52:11 UTC, Jean-Louis Leroy wrote: ...as a "programming languages you should learn now" - albeit somewhat dismissively ;-) https://www.infoworld.com/article/3263395/application-development/the-programming-la

Re: D mentioned in Infoworld

2018-03-26 Thread bauss via Digitalmars-d
On Monday, 26 March 2018 at 17:49:18 UTC, bauss wrote: On Monday, 26 March 2018 at 16:13:17 UTC, Joakim wrote: On Monday, 26 March 2018 at 15:52:11 UTC, Jean-Louis Leroy wrote: ...as a "programming languages you should learn now" - albeit somewhat dismissively ;-) https://www.infoworld.com/ar

Re: D mentioned in Infoworld

2018-03-26 Thread bauss via Digitalmars-d
On Tuesday, 27 March 2018 at 01:50:17 UTC, crimaniak wrote: On Monday, 26 March 2018 at 15:52:11 UTC, Jean-Louis Leroy wrote: https://www.infoworld.com/article/3263395/application-development/the-programming-languages-you-should-learn-now.html Looks like R advertising. Funny, I was thinkin

Re: D mentioned in Infoworld

2018-03-27 Thread bauss via Digitalmars-d
On Tuesday, 27 March 2018 at 10:31:34 UTC, Chris wrote: On Tuesday, 27 March 2018 at 06:42:29 UTC, Anton Fediushin wrote: [snip] "The only thing worse than being talked about is not being talked about." Oscar Wilde "There's no such thing as bad publicity except your own obituary." Brendan

Re: D mentioned in Infoworld

2018-03-27 Thread bauss via Digitalmars-d
On Tuesday, 27 March 2018 at 11:28:18 UTC, Chris wrote: On Tuesday, 27 March 2018 at 10:46:03 UTC, bauss wrote: On Tuesday, 27 March 2018 at 10:31:34 UTC, Chris wrote: On Tuesday, 27 March 2018 at 06:42:29 UTC, Anton Fediushin wrote: [snip] "The only thing worse than being talked about is no

Re: D mentioned in Infoworld

2018-03-27 Thread bauss via Digitalmars-d
On Tuesday, 27 March 2018 at 12:47:57 UTC, Chris wrote: On Tuesday, 27 March 2018 at 12:17:44 UTC, bauss wrote: Yes I agree it's great that D is talked about. I just feel like someone is dropping salt into my coffee when it's misinterpreted. I hope one day all the legacy, non-relevant issu

Re: Recursive attribute for virtual functions?

2018-03-28 Thread bauss via Digitalmars-d
On Tuesday, 27 March 2018 at 21:02:11 UTC, 12345swordy wrote: On Tuesday, 27 March 2018 at 20:49:25 UTC, ag0aep6g wrote: On 03/27/2018 10:39 PM, 12345swordy wrote: class A {     @recursive @safe void talk() [...] } class B : A {     override void talk() // @safe attribute added by recursiv

Re: D mentioned in Infoworld

2018-03-29 Thread bauss via Digitalmars-d
On Thursday, 29 March 2018 at 16:10:55 UTC, Johannes Loher wrote: Am 29.03.2018 um 14:54 schrieb Bienlein: On Monday, 26 March 2018 at 17:49:18 UTC, bauss wrote: Eventually they will listen to you for about half a minute why you like D. But in the end they will prefer someone with some workin

Re: How to use chromium embedded framework in dlang ?

2018-03-29 Thread bauss via Digitalmars-d
On Thursday, 29 March 2018 at 19:09:47 UTC, Jayam wrote: How to create desktop application using chromium embedded framework in dlang Take a look at this: https://github.com/cztomczak/cefcapi

Re: D mentioned in Infoworld

2018-03-31 Thread bauss via Digitalmars-d
On Saturday, 31 March 2018 at 13:53:30 UTC, Bienlein wrote: This is interesting. Maybe I write a little framwork or something in Kotlin and file it on github. Then I have something to show in any case. And from then on I can just play with D ;-) Yep, that's pretty much what I did. I had some

Re: dub / libs / rebuild not triggered

2018-04-04 Thread bauss via Digitalmars-d
On Wednesday, 4 April 2018 at 13:28:39 UTC, Robert M. Münch wrote: On 2018-04-01 22:24:54 +, Seb said: Bug. Imho dub should compare the timestamp of its dependencies and see whether they are newer than the target like e.g. Make. https://github.com/dlang/dub/issues/new Just found out, th

Re: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, [your code here]

2018-04-06 Thread Bauss via Digitalmars-d
On Friday, 6 April 2018 at 14:03:18 UTC, Abdulhaq wrote: On Friday, 6 April 2018 at 13:10:07 UTC, jason wrote: what is this? It's a perl program that converts D code into APL I laughed way too hard at this

Re: that is bug?

2018-04-07 Thread bauss via Digitalmars-d
On Saturday, 7 April 2018 at 09:07:48 UTC, sdvcn wrote: true?stt="AA":stt="BB";-///Out:BB It's an UB. Not a bug.

Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-07 Thread bauss via Digitalmars-d
jesus that became a long title. Anyway as the title says, is it a bug that a parent class that access its own private members from derived classes gets deprecation warning? Scenario narrowed down: // module foo; class Foo { private: bool _baz; public: final void foos(T : Foo

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-07 Thread bauss via Digitalmars-d
On Saturday, 7 April 2018 at 20:14:49 UTC, bauss wrote: foreach (child; values) { child._isChild = true; } I forgot: _isChild should be _baz in the narrowed down version.

Re: Registering packages crashed DUB registry

2018-04-07 Thread bauss via Digitalmars-d
On Saturday, 7 April 2018 at 19:49:31 UTC, 0xEAB wrote: Hello :) Tried to add a new package, but after clicking on [Register package] I only get the following error: 502 Bad Gateway nginx/1.6.2 Regards, Elias I don't think that was the case. code.dlang.org has been having a lot of issu

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-07 Thread bauss via Digitalmars-d
On Saturday, 7 April 2018 at 20:46:39 UTC, bauss wrote: The problem is that "Foo" cannot access "_baz" without deperecation warning, but "_baz" is a part of "Foo". I'm not trying to access "_baz" directly from "Bar" except for that I call the templated function that access "_baz", but that fu

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-07 Thread bauss via Digitalmars-d
On Saturday, 7 April 2018 at 20:34:57 UTC, user1234 wrote: On Saturday, 7 April 2018 at 20:14:49 UTC, bauss wrote: jesus that became a long title. Anyway as the title says, is it a bug that a parent class that access its own private members from derived classes gets deprecation warning? If

Re: Registering packages crashed DUB registry

2018-04-07 Thread bauss via Digitalmars-d
On Saturday, 7 April 2018 at 20:44:12 UTC, 0xEAB wrote: On Saturday, 7 April 2018 at 20:17:41 UTC, bauss wrote: On Saturday, 7 April 2018 at 19:49:31 UTC, 0xEAB wrote: Hello :) Tried to add a new package, but after clicking on [Register package] I only get the following error: 502 Bad Gate

Re: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, [your code here]

2018-04-07 Thread bauss via Digitalmars-d
On Friday, 6 April 2018 at 14:03:18 UTC, Abdulhaq wrote: On Friday, 6 April 2018 at 13:10:07 UTC, jason wrote: what is this? It's a perl program that converts D code into APL Here is a more readable version: (?:(?:\r\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t] )+|

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-08 Thread bauss via Digitalmars-d
On Sunday, 8 April 2018 at 10:48:19 UTC, user1234 wrote: On Saturday, 7 April 2018 at 20:46:39 UTC, bauss wrote: On Saturday, 7 April 2018 at 20:34:57 UTC, user1234 wrote: On Saturday, 7 April 2018 at 20:14:49 UTC, bauss wrote: jesus that became a long title. Anyway as the title says, is it a

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-08 Thread bauss via Digitalmars-d
On Sunday, 8 April 2018 at 14:45:34 UTC, kdevel wrote: On Sunday, 8 April 2018 at 13:00:02 UTC, bauss wrote: [...] // a.d module a; class Foo { private: bool _baz; public: void handleBar(T : Foo)(T[] foos) { foreach (child; foos

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-09 Thread bauss via Digitalmars-d
On Monday, 9 April 2018 at 17:05:45 UTC, martin wrote: On Sunday, 8 April 2018 at 13:00:02 UTC, bauss wrote: I think it's better demonstrated like this, because to me the behavior makes no sense. Especially since you can just cast "Bar" to "Foo" and then you're allowed to do it. Since we're

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-11 Thread bauss via Digitalmars-d
On Wednesday, 11 April 2018 at 17:34:40 UTC, bauss wrote: On Wednesday, 11 April 2018 at 17:20:23 UTC, martin wrote: On Monday, 9 April 2018 at 17:16:56 UTC, bauss wrote: On Monday, 9 April 2018 at 17:05:45 UTC, martin wrote:>> Actually, this behaves as i would expect. `_baz` is a private memb

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-11 Thread bauss via Digitalmars-d
On Wednesday, 11 April 2018 at 17:20:23 UTC, martin wrote: On Monday, 9 April 2018 at 17:16:56 UTC, bauss wrote: On Monday, 9 April 2018 at 17:05:45 UTC, martin wrote:>> Actually, this behaves as i would expect. `_baz` is a private member of Foo (to be precise: it belongs to module `a`) in ha

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-11 Thread bauss via Digitalmars-d
On Wednesday, 11 April 2018 at 17:58:25 UTC, Jonathan M Davis wrote: On Sunday, April 08, 2018 13:00:02 bauss via Digitalmars-d wrote: [...] I don't know. It could be argued either way. I think that the logic as to why [...] The thing is, it makes no sense why it shouldn't be l

Re: What Is Python Developer Salary?

2018-04-13 Thread bauss via Digitalmars-d
On Thursday, 12 April 2018 at 21:01:47 UTC, Arnold Blake wrote: I hired a remote developer in the language of the programming python, there was such a question as to how much should I pay him for the work? how many per hour? What kind of salary do they have, are different countries interested,

Re: What Is Python Developer Salary?

2018-04-13 Thread bauss via Digitalmars-d
On Friday, 13 April 2018 at 10:05:12 UTC, Simen Kjærås wrote: On Friday, 13 April 2018 at 10:00:00 UTC, bauss wrote: Also who hires someone before they agree on a salary? Says right there: "Arnold Blake". -- Simen Had me chuckle

Re: What Is Python Developer Salary?

2018-04-13 Thread bauss via Digitalmars-d
On Friday, 13 April 2018 at 10:06:55 UTC, Cym13 wrote: On Friday, 13 April 2018 at 10:00:00 UTC, bauss wrote: On Thursday, 12 April 2018 at 21:01:47 UTC, Arnold Blake wrote: I hired a remote developer in the language of the programming python, there was such a question as to how much should I p

Re: File names in string mixins

2018-04-15 Thread bauss via Digitalmars-d
On Sunday, 15 April 2018 at 10:09:36 UTC, Simen Kjærås wrote: In a thread[0] over on D.learn, bauss suggested adding a second argument to MixinExpressions, such that mixin("foo()", "my mixin") compiles. The use case for the extra argument is as an identifier that will be used in error messages,

Re: Feature to get or add value to an associative array.

2018-04-16 Thread bauss via Digitalmars-d
On Monday, 16 April 2018 at 03:42:18 UTC, Jordan Wilson wrote: On Sunday, 15 April 2018 at 22:55:41 UTC, Giles Bathgate wrote: On Sunday, 15 April 2018 at 22:52:47 UTC, Giles Bathgate wrote: I am proposing a new function called getOrAdd in I posted details of the PR here because at least 2 pe

Re: (Unofficial) Discord Server!

2018-04-17 Thread bauss via Digitalmars-d
On Tuesday, 17 April 2018 at 02:36:20 UTC, Wild wrote: On Monday, 16 April 2018 at 22:24:18 UTC, Luke Wilson wrote: Hi there! After having found nearly zero solutions for a D community on Discord, having one server be quite inefficient, I've made my own. https://discord.gg/crpA2Hn I hope to b

Re: Lightening cable?

2018-05-03 Thread bauss via Digitalmars-d
On Thursday, 3 May 2018 at 10:44:05 UTC, Andrea Fontana wrote: On Tuesday, 1 May 2018 at 11:25:31 UTC, Luís Marques wrote: On Tuesday, 1 May 2018 at 09:32:13 UTC, Stefan Koch wrote: On Monday, 30 April 2018 at 19:30:25 UTC, Luís Marques wrote: Hi. Can anyone staying at the conference hotel lend

Re: Lightening cable?

2018-05-03 Thread bauss via Digitalmars-d
On Thursday, 3 May 2018 at 12:54:57 UTC, Steven Schveighoffer wrote: On 5/3/18 12:44 PM, Andrea Fontana wrote: On Tuesday, 1 May 2018 at 11:25:31 UTC, Luís Marques wrote: On Tuesday, 1 May 2018 at 09:32:13 UTC, Stefan Koch wrote: On Monday, 30 April 2018 at 19:30:25 UTC, Luís Marques wrote: Hi

Re: D as a college language

2018-05-04 Thread bauss via Digitalmars-d
On Friday, 4 May 2018 at 11:35:22 UTC, Sjoerd Nijboer wrote: So i'm a college student in and what bothers me is that there seem to kind of assume programming languages don't evolve or don't get replaced by better ones. Right now if you go to college you'll most likely get tought c++, c# or java

Re: D as a college language

2018-05-06 Thread bauss via Digitalmars-d
On Sunday, 6 May 2018 at 13:34:04 UTC, James Blachly wrote: but the students indicate D is worlds more pleasant than either C++ or go. And they're well right about that.

Re: auto: useful, annoying or bad practice?

2018-05-09 Thread bauss via Digitalmars-d
On Wednesday, 9 May 2018 at 12:44:34 UTC, Jonathan M Davis wrote: On Monday, April 30, 2018 21:11:07 Gerald via Digitalmars-d wrote: [...] I think that the overall consensus is that it's great but that you do have to be careful about using it when it reduces clarity without adding other bene

Re: Sealed classes - would you want them in D?

2018-05-11 Thread bauss via Digitalmars-d
On Friday, 11 May 2018 at 05:26:36 UTC, Apocalypto wrote: On Friday, 11 May 2018 at 05:10:08 UTC, Uknown wrote: On Friday, 11 May 2018 at 04:43:09 UTC, KingJoffrey wrote: On Friday, 11 May 2018 at 03:32:25 UTC, Uknown wrote: Whereas D makes it part of the implementation of 'the module' ( which

Re: Module-level privacy

2018-05-13 Thread bauss via Digitalmars-d
On Sunday, 13 May 2018 at 05:51:07 UTC, KingJoffrey wrote: On Sunday, 13 May 2018 at 05:11:16 UTC, Neia Neutuladh wrote: Nobody's getting worked up about this, and nobody's telling you to stop talking about it. There have been suggestions that you write up a DIP for it. This is a standard proce

Re: Is D releasing too often?

2018-05-14 Thread bauss via Digitalmars-d
On Monday, 14 May 2018 at 07:53:40 UTC, Jonathan M Davis wrote: On Monday, May 14, 2018 07:20:48 Joakim via Digitalmars-d wrote: There have been 6 major releases of dmd over the last year, with ldc trying to keep pace, currently only one release behind. This is a big jump up from the previous r

Re: Sealed classes - would you want them in D?

2018-05-15 Thread bauss via Digitalmars-d
On Tuesday, 15 May 2018 at 10:19:58 UTC, KingJoffrey wrote: - Voldemort types (cause yeah...we all use them so often). Actually yes. Most people who has been writing D for a long time uses them.

Re: Sealed classes - would you want them in D? (v2)

2018-05-22 Thread bauss via Digitalmars-d
On Monday, 21 May 2018 at 03:19:34 UTC, KingJoffrey wrote: 18+ years, and still less than 1000 programmers. What kind of misinformation is that? vibe.d alone has over 2000 downloads per week and I'll mind you that regular users of vibe.d does not download or update the package that often.

Re: http://asm.dlang.org/ needs updating

2018-05-22 Thread bauss via Digitalmars-d
On Monday, 21 May 2018 at 22:18:17 UTC, IntegratedDimensions wrote: On Monday, 21 May 2018 at 20:29:13 UTC, Steven Schveighoffer wrote: On 5/20/18 12:47 PM, IntegratedDimensions wrote: load and save are not working, an example is always compiled in. No code in the input box still shows examples

Re: string file = __FILE__ considered harmful (and solution)

2018-05-30 Thread bauss via Digitalmars-d
On Wednesday, 30 May 2018 at 08:27:16 UTC, FeepingCreature wrote: There's a very common idiom where in order to report line numbers of an error or a log line at the callsite of a function, you pass __FILE__ and __LINE__ as default parameters: [...] void foo(string file = __FILE__, size_t lin

Re: string file = __FILE__ considered harmful (and solution)

2018-05-31 Thread bauss via Digitalmars-d
On Wednesday, 30 May 2018 at 14:40:50 UTC, Steven Schveighoffer wrote: On 5/30/18 4:27 AM, FeepingCreature wrote: There's a very common idiom where in order to report line numbers of an error or a log line at the callsite of a function, you pass __FILE__ and __LINE__ as default parameters: vo

Re: D on top of Hacker News!

2018-06-04 Thread bauss via Digitalmars-d
On Sunday, 3 June 2018 at 17:40:46 UTC, I love Ice Cream wrote: Is D really a top 20 language? I don't remember seeing it anywhere close to the top 20. https://www.tiobe.com/tiobe-index/ has them in 31 Top comment is kind of depressing. Tiobe is based on Google searches, so it's not releva

Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread bauss via Digitalmars-d
See the following: https://run.dlang.io/is/uQ21PH (I have tried with allMembers too.) It's like it won't pick up the member that is added using a mixin at line 22. ``` mixin("ubyte[" ~ to!string(__PADDING_SIZE__) ~ "] __PADDING__" ~ member ~ ";"); ``` As you can see if you take sizeof fro

Re: Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread bauss via Digitalmars-d
On Tuesday, 12 June 2018 at 13:40:45 UTC, bauss wrote: See the following: https://run.dlang.io/is/uQ21PH Note: Look at the comments in the code.

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-06-12 Thread bauss via Digitalmars-d
On Monday, 11 June 2018 at 15:41:57 UTC, Steven Schveighoffer wrote: On 4/11/18 3:13 PM, bauss wrote: On Wednesday, 11 April 2018 at 17:58:25 UTC, Jonathan M Davis wrote: On Sunday, April 08, 2018 13:00:02 bauss via Digitalmars-d wrote: [...] I don't know. It could be argued either w

Re: Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread Bauss via Digitalmars-d
On Tuesday, 12 June 2018 at 14:37:19 UTC, ag0aep6g wrote: On Tuesday, 12 June 2018 at 13:40:45 UTC, bauss wrote: See the following: https://run.dlang.io/is/uQ21PH (I have tried with allMembers too.) It's like it won't pick up the member that is added using a mixin at line 22. ``` mixin("uby

Re: Is this a bug with __traits(derivedMembers)?

2018-06-12 Thread bauss via Digitalmars-d
On Tuesday, 12 June 2018 at 17:24:31 UTC, Basile B. wrote: On Tuesday, 12 June 2018 at 15:42:50 UTC, Bauss wrote: On Tuesday, 12 June 2018 at 14:37:19 UTC, ag0aep6g wrote: On Tuesday, 12 June 2018 at 13:40:45 UTC, bauss wrote: See the following: https://run.dlang.io/is/uQ21PH (I have tried wi

Re: Any comments about the new Ruby JIT Compiler

2018-06-13 Thread bauss via Digitalmars-d
On Wednesday, 13 June 2018 at 08:21:45 UTC, Martin Tschierschke wrote: Could D be an better choice for that purpose? I would say yes. Especially if we're talking just replacing the C code with D (using betterC.) See: https://dlang.org/blog/2018/06/11/dasbetterc-converting-make-c-to-d/

Re: Any comments about the new Ruby JIT Compiler

2018-06-13 Thread bauss via Digitalmars-d
On Wednesday, 13 June 2018 at 10:07:03 UTC, Anton Fediushin wrote: Too bad they released it now and not, you know, five to seven years ago when ruby was really popular. Partially agrees, BUT it's still somewhat popular with rails.

Re: D community's view on syntactic sugar

2018-06-16 Thread Bauss via Digitalmars-d
On Friday, 15 June 2018 at 23:04:40 UTC, Sjoerd Nijboer wrote: For someone coming from a C# background there is some seemingly simple syntactic sugar missing from D. * The null conditional operator `?.` This has been discussed many times and would definitely require a DIP and a good usecase.

Re: Friends in D, the easy way!

2018-06-18 Thread bauss via Digitalmars-d
On Monday, 18 June 2018 at 06:37:41 UTC, Mr.Bingo wrote: These go in the module you want allow access to the outside world just as if they were in the same module! auto Setter(string name, alias O, T)(T t) { mixin("t."~name~" = O();"); } auto ref Getter(string name, T)(T t) { m

Re: allMembers broke for __

2018-06-18 Thread bauss via Digitalmars-d
On Monday, 18 June 2018 at 08:25:46 UTC, Russel Winder wrote: On Sun, 2018-06-17 at 15:55 -0700, Walter Bright via Digitalmars-d wrote: […] Identifiers starting with __ are reserved for the implementation: https://dlang.org/spec/lex.html#identifiers They have implementation-defined beha

Re: OT: First-Class Statistical Missing Values Support in Julia 0.7

2018-06-22 Thread Bauss via Digitalmars-d
On Thursday, 21 June 2018 at 15:11:51 UTC, jmh530 wrote: The Julia folks have done some interesting work with missing values that I thought might be of interest [1, 2]. Looks like it would be pretty easy to do something similar in D with either unions or Algebraic. The time-consuming part woul

Re: Phobos begat madness

2018-06-22 Thread Bauss via Digitalmars-d
On Friday, 22 June 2018 at 22:36:23 UTC, Adam D. Ruppe wrote: On Friday, 22 June 2018 at 22:28:17 UTC, Walter Bright wrote: That would help, do you want to implement it? I can't for at last two weeks, I'm about to fly tomorrow... and I'm getting married in August too so my life is kinda hecti

Re: Is it possible to set up DConf Asia?

2018-06-29 Thread bauss via Digitalmars-d
On Friday, 29 June 2018 at 09:03:19 UTC, 鲜卑拓跋枫 wrote: Dear all, How about set up DConf Asia every year? As far as I know, there are a few D programmers and fans in Asia, but DConf was traditionally held in U.S. or Germany before,so that it may be not convenient for them to take part in the

Re: Is it possible to set up DConf Asia?

2018-06-29 Thread bauss via Digitalmars-d
On Friday, 29 June 2018 at 11:32:13 UTC, Jonathan M Davis wrote: On Friday, June 29, 2018 10:50:52 Joakim via Digitalmars-d wrote: I coincidentally just read this blog post, that summarizes a lot of my thoughts against conferences and meetups: https://marco.org/2018/01/17/end-of-conference-era

Re: Is it possible to set up DConf Asia?

2018-06-29 Thread bauss via Digitalmars-d
On Friday, 29 June 2018 at 17:04:46 UTC, 鲜卑拓跋枫 wrote: On Friday, 29 June 2018 at 11:54:48 UTC, Joakim wrote: On Friday, 29 June 2018 at 11:32:13 UTC, Jonathan M Davis wrote: On Friday, June 29, 2018 10:50:52 Joakim via Digitalmars-d wrote: I coincidentally just read this blog post, that summari

Re: 64bit DMD on Windows

2018-06-29 Thread bauss via Digitalmars-d
On Friday, 29 June 2018 at 16:11:56 UTC, Seb wrote: I hope we manage to ship it with the official releases soon. I can't wait. Honestly, a compiler should never run out of memory and it's a major issue that DMD does it. Regardless of that it has fast compilation, it should never run out of

Re: Is package.d a good idea?

2018-07-03 Thread bauss via Digitalmars-d
On Sunday, 1 July 2018 at 11:36:51 UTC, Yuxuan Shui wrote: In Rust, they have something call mod.rs, which is very similar to package.d. When you use a module 'foo' in Rust, it can either be 'foo.rs' or 'foo/mod.rs'. If 'foo' has sub-modules, it has to be 'foo/mod.rs'. Now in the Rust 2018 ed

Re: Is package.d a good idea?

2018-07-03 Thread bauss via Digitalmars-d
On Tuesday, 3 July 2018 at 12:51:18 UTC, bauss wrote: On Sunday, 1 July 2018 at 11:36:51 UTC, Yuxuan Shui wrote: In Rust, they have something call mod.rs, which is very similar to package.d. When you use a module 'foo' in Rust, it can either be 'foo.rs' or 'foo/mod.rs'. If 'foo' has sub-module

Re: More fun with autodecoding

2018-08-08 Thread bauss via Digitalmars-d
On Monday, 6 August 2018 at 13:57:10 UTC, Steven Schveighoffer wrote: I'm very tempted to start writing my own parsing utilities and avoid using Phobos algorithms... -Steve Oh yes; the good old autodecoding.

Re: [OT] "I like writing in D" - Hans Zimmer

2018-08-25 Thread Bauss via Digitalmars-d
On Wednesday, 22 August 2018 at 22:51:58 UTC, Piotrek wrote: You may already know that from youtube. It seems D starts getting traction even among musicians: https://www.youtube.com/watch?v=yCX1Ze3OcKo&feature=youtu.be&t=64 That really put a smile on my face :D And it would be a nice example

D now has a dangerous competitor

2018-08-28 Thread bauss via Digitalmars-d
The following language is a dangerous competitor to D. https://github.com/joaomilho/Enterprise

Re: D now has a dangerous competitor

2018-08-28 Thread bauss via Digitalmars-d
On Tuesday, 28 August 2018 at 23:27:09 UTC, Nick Sabalausky wrote: On Tuesday, 28 August 2018 at 21:57:28 UTC, solidstate1991 wrote: Thanks to my education, I first wanted to approach every problems in programming from an object-oriented viewpoint, since that was the only one we were taught.

Re: D now has a dangerous competitor

2018-08-30 Thread bauss via Digitalmars-d
On Thursday, 30 August 2018 at 07:01:11 UTC, Nick Sabalausky (Abscissa) wrote: On 08/29/2018 12:53 AM, bauss wrote: Honestly C++ did OOP somewhat right, because it wasn't forced upon you, but C++ itself has design issues, that I think D has solved very well. D does OOP better than C++, but

Re: I want change package name for dub , how to do it?

2018-08-30 Thread bauss via Digitalmars-d
On Wednesday, 29 August 2018 at 22:26:28 UTC, Neia Neutuladh wrote: On Monday, 27 August 2018 at 13:21:18 UTC, JN wrote: On Monday, 27 August 2018 at 10:54:22 UTC, Eugene Wissner wrote: On Monday, 27 August 2018 at 10:25:42 UTC, Brian wrote: My team want change packages name: hunt -> hunt-fra

Re: D now has a dangerous competitor

2018-08-30 Thread bauss via Digitalmars-d
On Thursday, 30 August 2018 at 10:43:24 UTC, Basile B. wrote: On Wednesday, 29 August 2018 at 04:53:59 UTC, bauss wrote: On Tuesday, 28 August 2018 at 23:27:09 UTC, Nick Sabalausky wrote: [...] Honestly C++ did OOP somewhat right, because it wasn't forced upon you, but C++ itself has design

Re: D now has a dangerous competitor

2018-08-30 Thread Bauss via Digitalmars-d
On Thursday, 30 August 2018 at 11:28:47 UTC, Basile B. wrote: On Thursday, 30 August 2018 at 10:57:23 UTC, bauss wrote: On Thursday, 30 August 2018 at 10:43:24 UTC, Basile B. wrote: On Wednesday, 29 August 2018 at 04:53:59 UTC, bauss wrote: On Tuesday, 28 August 2018 at 23:27:09 UTC, Nick Sabal

Re: Static foreach bug?

2018-09-02 Thread bauss via Digitalmars-d
On Sunday, 2 September 2018 at 13:21:05 UTC, bauss wrote: Is there a reason why you cannot create a separate scope within a static foreach? You can try it out here: https://run.dlang.io/is/7DgwCk

Static foreach bug?

2018-09-02 Thread bauss via Digitalmars-d
Is there a reason why you cannot create a separate scope within a static foreach? The below will not compile: ``` enum a = ["a" : "a", "b" : "b", "c" : "c"]; static foreach (k,v; a) { { enum b = k; enum c = v; } } ``` It works if it's in a function of course. This cre

Re: Static foreach bug?

2018-09-02 Thread bauss via Digitalmars-d
On Sunday, 2 September 2018 at 13:26:55 UTC, Petar Kirov [ZombineDev] wrote: It's intended, but with the possibility to add special syntax for local declarations in the future left open, as per: https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1010.md#local-declarations Is there any

Re: Static foreach bug?

2018-09-02 Thread bauss via Digitalmars-d
On Sunday, 2 September 2018 at 18:07:10 UTC, Jonathan M Davis wrote: On Sunday, September 2, 2018 7:21:05 AM MDT bauss via Digitalmars-d wrote: Is there a reason why you cannot create a separate scope within a static foreach? The below will not compile: ``` enum a = ["a" : "a&

Re: Static foreach bug?

2018-09-02 Thread bauss via Digitalmars-d
On Sunday, 2 September 2018 at 20:01:08 UTC, Neia Neutuladh wrote: On Sunday, 2 September 2018 at 19:42:20 UTC, bauss wrote: Woud be so much more maintainable if I could have each statement into a variable that could be maintained properly. You could extract the body of the static foreach into

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-02 Thread bauss via Digitalmars-d
On Sunday, 2 September 2018 at 14:48:34 UTC, lurker wrote: after the beta i tried it the final again - just to be fair. 1.) install d, install visual d. 2.) trying to to look at options under visual d without a project crashes VS2017 - latest service pack. 3.) VS2017 - displays a problem o

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-02 Thread bauss via Digitalmars-d
On Sunday, 2 September 2018 at 14:48:34 UTC, lurker wrote: after the beta i tried it the final again - just to be fair. 1.) install d, install visual d. 2.) trying to to look at options under visual d without a project crashes VS2017 - latest service pack. 3.) VS2017 - displays a problem o

Re: Static foreach bug?

2018-09-02 Thread bauss via Digitalmars-d
On Monday, 3 September 2018 at 06:39:17 UTC, Neia Neutuladh wrote: On Monday, 3 September 2018 at 04:43:30 UTC, bauss wrote: On Sunday, 2 September 2018 at 20:01:08 UTC, Neia Neutuladh wrote: On Sunday, 2 September 2018 at 19:42:20 UTC, bauss wrote: Woud be so much more maintainable if I could

Re: DMD cross compiler

2018-09-03 Thread bauss via Digitalmars-d
On Sunday, 2 September 2018 at 01:52:18 UTC, Joakim wrote: On Saturday, 1 September 2018 at 20:12:24 UTC, Manu wrote: I know there's been discussion on this before, I just want a definitive reference. It looks like it would be relatively straight forward for DMD to be a cross-compiler. A few

Re: DMD cross compiler

2018-09-03 Thread bauss via Digitalmars-d
On Monday, 3 September 2018 at 14:00:58 UTC, Iain Buclaw wrote: On 3 September 2018 at 15:12, Laurent Tréguier via Digitalmars-d wrote: On Monday, 3 September 2018 at 09:32:29 UTC, Joakim wrote: Why not? If you're not optimizing or iterating on your code, it's a reasonable replacement. If yo

Re: extern(C++, ns) is wrong

2018-09-04 Thread bauss via Digitalmars-d
On Wednesday, 5 September 2018 at 04:39:14 UTC, Walter Bright wrote: On 9/4/2018 5:31 PM, Manu wrote: I'm just showing one case that you tend to be confronted with immediately, which is that if you import a module, and then open a namespace with the same name as the root namespace of a module

Re: extern(C++, ns) is wrong

2018-09-05 Thread bauss via Digitalmars-d
On Wednesday, 5 September 2018 at 07:22:50 UTC, Paolo Invernizzi wrote: On Wednesday, 5 September 2018 at 05:32:43 UTC, Manu wrote: On Tue, 4 Sep 2018 at 21:40, Walter Bright via Digitalmars-d wrote: [...] "A handwavy description"! What do you mean? I started the email with the code... if yo

Re: Rename sloppy "Install .exe"

2018-09-05 Thread Bauss via Digitalmars-d
On Thursday, 6 September 2018 at 01:25:51 UTC, 0xEAB wrote: On Tuesday, 4 September 2018 at 16:59:38 UTC, Tourist wrote: The "Install .exe" on the main page looks sloppy to me. My brain wants to read it as "Install.exe" and wonders why there's a space before the dot. Well, if one visits the

Re: Rename sloppy "Install .exe"

2018-09-06 Thread bauss via Digitalmars-d
On Thursday, 6 September 2018 at 05:50:15 UTC, Mike Parker wrote: On Thursday, 6 September 2018 at 05:47:56 UTC, Mike Parker wrote: I'll check back on it later when the tests have finished to make sure it rendered properly. And I just realized it won't render properly because I overlooked o

Re: code.dlang.org package list

2018-09-10 Thread bauss via Digitalmars-d
On Monday, 10 September 2018 at 00:56:37 UTC, void wrote: On Sunday, 9 September 2018 at 06:32:39 UTC, Jonathan M Davis wrote: On Saturday, September 8, 2018 8:36:26 PM MDT void via Digitalmars-d wrote: On Sunday, 9 September 2018 at 01:30:14 UTC, Neia Neutuladh wrote: > On Sunday, 9 September

  1   2   3   >