Re: tardy v0.0.1 - Runtime polymorphism without inheritance

2020-06-17 Thread Stanislav Blinov via Digitalmars-d-announce
On Saturday, 13 June 2020 at 15:11:49 UTC, Atila Neves wrote: Tardy lets users have their cake and eat it too by not making them have to use classes for runtime polymorphism. I've got to ask though. Why "tardy"? Search engines be damned? :)

Re: Classes in D with betterC

2021-11-19 Thread Stanislav Blinov via Digitalmars-d-announce
On Saturday, 20 November 2021 at 05:37:42 UTC, rikki cattermole wrote: And then there are issues such as https://issues.dlang.org/show_bug.cgi?id=21416 which killed off any chance of me using them internally. ...and the implementation, as presented, falls apart due to not forwarding arguments

Re: Classes in D with betterC

2021-11-21 Thread Stanislav Blinov via Digitalmars-d-announce
On Sunday, 21 November 2021 at 20:30:51 UTC, Luís Ferreira wrote: I decided to have a simple approach just to show that it is easier now to do that without workarounds, and by workarounds, I mean using scope to fetch that info and use a fake dtor, or even before scope exists, the usage of runt

Re: Classes in D with betterC

2021-11-22 Thread Stanislav Blinov via Digitalmars-d-announce
On Monday, 22 November 2021 at 12:57:27 UTC, Luís Ferreira wrote: On Mon, 2021-11-22 at 03:36 +, Stanislav Blinov via Digitalmars-d- announce wrote: On Sunday, 21 November 2021 at 20:30:51 UTC, Luís Ferreira wrote: > I decided to have a simple approach just to show that it is > easi

Re: Added copy constructors to "Programming in D"

2022-01-08 Thread Stanislav Blinov via Digitalmars-d-announce
On Saturday, 8 January 2022 at 02:07:10 UTC, Ali Çehreli wrote: 1) After about three years, I finally added copy constructors: http://ddili.org/ders/d.en/special_functions.html#ix_special_functions.copy%20constructor Of course, now I stress that postblit is discouraged. Bit early, methinks.

Re: Added copy constructors to "Programming in D"

2022-01-08 Thread Stanislav Blinov via Digitalmars-d-announce
On Saturday, 8 January 2022 at 16:24:03 UTC, Ali Çehreli wrote: On 1/8/22 5:49 AM, Stanislav Blinov wrote: >> Of course, now I stress that postblit is discouraged. > > Bit early, methinks. Copy ctors aren't even fully supported by the > runtime yet. Thanks. The spec discourages postblit as well

Re: Why I Like D

2022-01-13 Thread Stanislav Blinov via Digitalmars-d-announce
On Wednesday, 12 January 2022 at 16:17:02 UTC, H. S. Teoh wrote: On Wed, Jan 12, 2022 at 03:41:03PM +, Adam D Ruppe via Digitalmars-d-announce wrote: On Wednesday, 12 January 2022 at 15:25:37 UTC, H. S. Teoh wrote: >However it turns out that unless you are writing a computer >game,

Re: Teaching D at a Russian University

2022-02-20 Thread Stanislav Blinov via Digitalmars-d-announce
On Sunday, 20 February 2022 at 04:38:46 UTC, matheus wrote: Interesting, since English is not my first language, if in that sentence instead of "for" there was the word "since", I wouldn't have been bothered, but since it was the first time I saw the usage of "for" in that way, I found awkward

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-12 Thread Stanislav Blinov via Digitalmars-d-announce
On Monday, 10 April 2017 at 08:11:37 UTC, Atila Neves wrote: On Sunday, 9 April 2017 at 13:59:14 UTC, Andrei Alexandrescu wrote: Great. Can RefCounted itself be shared? I learned this is important for composition, i.e. you want to make a RefCounted a field in another object that is itself sha

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-17 Thread Stanislav Blinov via Digitalmars-d-announce
On Monday, 17 April 2017 at 13:21:50 UTC, Kagamin wrote: If we can control memory layout, we can do what shared_ptr does and couple the reference counter with the object, then we can have just one pointer: struct RefCounted(T) { struct Wrapper { int count; T payload; } Wrapper

Re: Working code in an upcoming PR by Timon Gehr

2017-05-07 Thread Stanislav Blinov via Digitalmars-d-announce
On Sunday, 7 May 2017 at 16:57:58 UTC, Andrei Alexandrescu wrote: Zoom in on the screen for a nice surprise! http://imgur.com/a/qjI4l -- Andrei I see only unsurprising Jpeg artifacts and not much more :) It's too low resolution to make anything out.

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. Any

Re: [OT] Fast Deterministic Selection

2017-05-18 Thread Stanislav Blinov via Digitalmars-d-announce
On Thursday, 18 May 2017 at 15:14:17 UTC, Andrei Alexandrescu wrote: The implementation is an improved version of what we now have in the D standard library. I'll take up the task of updating phobos at a later time. https://www.reddit.com/r/programming/comments/6bwsjn/fast_deterministic_select

Re: Compile-Time Sort in D

2017-06-05 Thread Stanislav Blinov via Digitalmars-d-announce
On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote: The crowd-edited (?) blog post exploring some of D's compile-time features is now live. Thanks again to everyone who helped out with it. The blog: https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ Reddit: https://www.reddit.co

Re: Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Stanislav Blinov via Digitalmars-d-announce
On Friday, 9 June 2017 at 05:07:37 UTC, Ali Çehreli wrote: On 06/08/2017 01:39 AM, Walter Bright wrote: https://www.reddit.com/r/programming/comments/6fz3yh/cnow_2017_competitive_advantage_with_d/ Can someone verify and make corrections to my response to LordJebbs please: https://www.redd

The DLang Tour translated into Russian

2017-06-10 Thread Stanislav Blinov via Digitalmars-d-announce
Hi everyone! We're happy to announce that as of today, the Russian translation of the DLang Tour chapters is available here: https://tour.dlang.org/tour/ru/welcome/welcome-to-d , and of course via the language selection page: https://tour.dlang.org/tour/en/welcome/languages Hopefully, this

Re: Wed Oct 17 - Avoiding Code Smells by Walter Bright

2018-10-31 Thread Stanislav Blinov via Digitalmars-d-announce
On Wednesday, 31 October 2018 at 13:28:54 UTC, rikki cattermole wrote: But at the end of the day, it just depends on the scope of the module. Is it getting to large? If so, split. Yup. LOC aren't a particulalry informative metric. Documentation, comments, unit tests, blanks, all contribute t

Re: Wed Oct 17 - Avoiding Code Smells by Walter Bright

2018-10-31 Thread Stanislav Blinov via Digitalmars-d-announce
On Wednesday, 31 October 2018 at 13:37:07 UTC, rikki cattermole wrote: On 01/11/2018 2:33 AM, Stanislav Blinov wrote: On Wednesday, 31 October 2018 at 13:28:54 UTC, rikki cattermole wrote: But at the end of the day, it just depends on the scope of the module. Is it getting to large? If so, sp

Re: Wed Oct 17 - Avoiding Code Smells by Walter Bright

2018-11-03 Thread Stanislav Blinov via Digitalmars-d-announce
On Saturday, 3 November 2018 at 20:38:29 UTC, unprotected-entity wrote: As has been pointed out several times before, this is a contrived example. Allow a simple transformation: ``` module test; struct S { private uint a; void setA(uint n) { // damn implicit conversions!

Re: Wed Oct 17 - Avoiding Code Smells by Walter Bright

2018-11-05 Thread Stanislav Blinov via Digitalmars-d-announce
On Monday, 5 November 2018 at 05:55:02 UTC, unprotected-entity wrote: On Saturday, 3 November 2018 at 21:28:22 UTC, Stanislav Blinov wrote: The only difference is that `func` became a member function. And now what? You can just as easily "forget" what's in your struct/class as in your whole m

Re: Backend nearly entirely converted to D

2018-11-08 Thread Stanislav Blinov via Digitalmars-d-announce
On Thursday, 8 November 2018 at 17:50:20 UTC, welkam wrote: On Wednesday, 7 November 2018 at 22:08:36 UTC, H. S. Teoh wrote: Now for all of you who think that one letter variables are ok here is exercise. Go and open src/dmd/func.d with your favorite code editor. Find function FuncDeclaration

Re: Backend nearly entirely converted to D

2018-11-08 Thread Stanislav Blinov via Digitalmars-d-announce
On Thursday, 8 November 2018 at 18:48:05 UTC, Neia Neutuladh wrote: On Thu, 08 Nov 2018 18:38:55 +, welkam wrote: On Thursday, 8 November 2018 at 18:15:55 UTC, Stanislav Blinov wrote: One keystroke (well ok, two keys because it's *) ;) https://dl.dropbox.com/s/mifou0ervwspx5i/vimhl.png W