Re: On the Blog: Recent D Compiler Releases

2020-01-10 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 8 January 2020 at 18:17:40 UTC, Rainer Schuetze wrote: With the current GC implementation, it’s illegal to perform any GC operations during finalization. There are some exceptions, namely addRoot/addRange and removeRoot/removeRange and the iterators over roots or ranges. I

Re: DConf 2020: Double Decker Edition

2020-01-09 Thread Mike Parker via Digitalmars-d-announce
On Friday, 10 January 2020 at 01:11:44 UTC, Murilo wrote: On Saturday, 4 January 2020 at 12:23:40 UTC, Mike Parker wrote: The announcement is on the blog and dconf.org is up to date. Read all about it! https://dlang.org/blog/2020/01/04/dconf-2020-double-decker-edition/

On the Blog: Recent D Compiler Releases

2020-01-08 Thread Mike Parker via Digitalmars-d-announce
I've posted an overview of LDC 1.19.0 and DMD 2.090.0 on the blog, and a reminder that GDC is available as part of the GCC 9 series. The blog: https://dlang.org/blog/2020/01/08/recent-d-compiler-releases/ Reddit:

Re: ssll - simple shared library loader

2020-01-05 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 5 January 2020 at 23:23:48 UTC, Oleg B wrote: Nice work! One thing I would recommend, though, is that you not bake in extern(C). Some libraries require extern(System) (because they're stdcall on Windows and cdecl everywhere else). There's also the issue with the Windows stdcall

Re: DConf 2020: Double Decker Edition

2020-01-05 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 5 January 2020 at 18:08:28 UTC, DanielG wrote: Is there a deadline for submissions? Not looking to inconvenience the evaluation team, just busy with something else for the next few weeks and wanting to give a submission the attention it deserves. I’ll update the site with the

DConf 2020: Double Decker Edition

2020-01-04 Thread Mike Parker via Digitalmars-d-announce
The announcement is on the blog and dconf.org is up to date. Read all about it! https://dlang.org/blog/2020/01/04/dconf-2020-double-decker-edition/ https://dconf.org/2020/index.html

DIP 1028---Make @safe the Default---Community Review Round 1 Begins

2020-01-02 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1028, "Make @safe the Default", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/ejaxvwklkyfnksjkl...@forum.dlang.org *Please leave all feedback in the review thread rather than here!* Thanks!

DIP 1024---Shared Atomics---Accepted

2020-01-01 Thread Mike Parker via Digitalmars-d-announce
DIP 1024, "Shared Atomics", was accepted without comment. https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1024.md

Re: Default values in derived class

2019-12-28 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 28 December 2019 at 20:22:51 UTC, JN wrote: import std.stdio; class Base { bool b = true; } class Derived : Base { bool b = false; } void main() { // 1 Base b = new Derived(); writeln(b.b); // true // 2 Derived d = new Derived(); writeln(d.b); // false }

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-25 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 25 December 2019 at 10:57:45 UTC, Ron Tarrant wrote: On Tuesday, 24 December 2019 at 16:43:06 UTC, Mike Parker wrote: But now that VS Code's performance is within my tolerance range Just curious what you mean by this, Mike. For a while, typing in VS Code was clunky compared to

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-24 Thread Mike Parker via Digitalmars-d-learn
On Monday, 23 December 2019 at 20:45:53 UTC, TheGag96 wrote: I've loved Sublime for years. I use it for everything, really. So pretty, so fast. I really like Sublime, too. Paid for it. But now that VS Code's performance is within my tolerance range, the built-in console makes the

Re: array of functions/delegates

2019-12-24 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 13:13:12 UTC, MoonlightSentinel wrote: On Tuesday, 24 December 2019 at 10:40:16 UTC, Mike Parker wrote: struct S {} void f1(S s) {} void f2(S s) {} alias Func = immutable(void function()); immutable Func[2] funcs = [cast(Func), cast(Func)]; Though, it's not

Re: Static linking, specifying binary and test-library folder

2019-12-24 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 05:51:37 UTC, Adnan wrote: Hello, how does one: 1. Force static linking (build with `-defaultlib` flag) Generally, when you don't see a buildOption in the docs for the compiler flag you want, use dflags. https://dub.pm/package-format-json.html 2. Specify

Re: array of functions/delegates

2019-12-24 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 07:37:02 UTC, Rumbu wrote: I am trying to create an array of functions inside a struct. struct S { void f1() {} void f2() {} alias Func = void function(); immutable Func[2] = [, ] } What I got: Error: non-constant expression '' Tried also with

Re: Beta 2.090.0

2019-12-22 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 22 December 2019 at 18:51:45 UTC, berni44 wrote: On Sunday, 22 December 2019 at 15:23:32 UTC, Martin Nowak wrote: Glad to announce the first beta for the 2.090.0 release, ♥ to the 48 contributors. I'm wondering, why I'm listed twice there (as Bernhard Seckinger and as berni44).

Re: Beta 2.090.0

2019-12-22 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 22 December 2019 at 15:27:15 UTC, rikki cattermole wrote: On 23/12/2019 4:23 AM, Martin Nowak wrote: Glad to announce the first beta for the 2.090.0 release, ♥ to the 48 contributors. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.090.0.html As usual please

Re: unicode characters are not printed correctly on the windows command line?

2019-12-22 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 22 December 2019 at 06:25:42 UTC, rikki cattermole wrote: On 22/12/2019 7:11 PM, moth wrote: is there any function i can call or setting i can adjust to get D to do the same, or do i have to wait for something to be fixed in the language / compiler itself? Not a bug. This

DIP 1027---String Interpolation---Community Review Round 1 Begins

2019-12-11 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1027, "String Interpolation", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/abhpqwxqgiyzgqxmj...@forum.dlang.org *Please leave all feedback in the review thread rather than here!* Thanks!

Goings-on in DLand

2019-12-10 Thread Mike Parker via Digitalmars-d-announce
My latest post on the D Blog is an update on some current and upcoming events, a thank you note to all of our contributors, and a plea to help us fill our ongoing need for contributions.

Re: Goings-on in DLand

2019-12-10 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 10 December 2019 at 10:09:22 UTC, Mike Parker wrote: My latest post on the D Blog is an update on some current and upcoming events, a thank you note to all of our contributors, and a plea to help us fill our ongoing need for contributions.

DIP 1023--Resolution of Template Alias Formal Parameters in Template Functions--Postponed

2019-12-09 Thread Mike Parker via Digitalmars-d-announce
DIP 1023, "Resolution of Template Alias Formal Parameters in Template Functions", has been postponed at the request of the DIP author. https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1023.md

DIP 1024---Shared Atomics---Final Review Begins

2019-12-08 Thread Mike Parker via Digitalmars-d-announce
The Final Review for DIP 1024, "Shared Atomics", is now underway. Please do not leave any feedback in this thread, but rather in the review thread in the General forum: https://forum.dlang.org/post/ippdfqxnxbhxwzfdo...@forum.dlang.org

DIP 1026---Deprecate Context-Sensitive String Literals---Withdrawn

2019-12-08 Thread Mike Parker via Digitalmars-d-announce
As a result of the feedback in the Community Review Round 1 discussion thread at https://forum.dlang.org/post/eevjgascbrqefbncc...@forum.dlang.org the DIP author has withdrawn the DIP from the review process. https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1026.md

Re: How to create a custom max() function without the ambiguity error.

2019-12-06 Thread Mike Parker via Digitalmars-d-learn
On Friday, 6 December 2019 at 21:02:53 UTC, realhet wrote: Here's my latest attempt on EXTENDING std.algorithm.max's functionality with a max operation on a custom type. The type is the GLSL vec2 type which does the max operation component-wise. The D std implementation uses the < operator,

Re: Unexpectedly nice case of auto return type

2019-12-03 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 3 December 2019 at 10:06:22 UTC, Mike Parker wrote: On Tuesday, 3 December 2019 at 10:03:22 UTC, Basile B. wrote: That's interesting details of D developement. Since you reply to the first message I think you have not followed but in the last reply I told that maybe we should be

Re: Unexpectedly nice case of auto return type

2019-12-03 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 3 December 2019 at 10:03:22 UTC, Basile B. wrote: That's interesting details of D developement. Since you reply to the first message I think you have not followed but in the last reply I told that maybe we should be able to name the type of null. I think this relates to TBottom

DIP 1026---Deprecate Context-Sensitive String Literals---Community Review Round 1 Begins

2019-12-03 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1026, "Deprecate Context-Sensitive String Literals", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/eevjgascbrqefbncc...@forum.dlang.org *Please leave all feedback in the review thread rather

Re: Exceptions on Windows being "swallowed"

2019-11-26 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 05:15:10 UTC, cartland wrote: No MS installed. Just using DMD. - dub -a x86_mscoff --force -v : So please try it without dub dmd -m32mscoff x.d If that works, add some debug flags like dub does: dmd -m32mscoff -debug -g x.d And see what happens.

Re: Exceptions on Windows being "swallowed"

2019-11-26 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 02:48:53 UTC, cartland wrote: Trying out exception handling. When an exception occurs, program seems to just exit. dub -a x86_mscoff I compiled it with dmd and ran it directly from the command line and it worked fine: C:\dev\D\scratch>ex finally catch

DIP 1022---foreach auto ref---Final Review Begins

2019-11-26 Thread Mike Parker via Digitalmars-d-announce
The Final Review for DIP 1022, "foreach auto ref", is now underway. Please do not leave any feedback in this thread, but rather in the review thread in the General forum: https://forum.dlang.org/post/ugkhpbbvqugvlafek...@forum.dlang.org

Re: how to implement a function in a different D source file

2019-11-25 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 26 November 2019 at 03:55:24 UTC, mipri wrote: On Tuesday, 26 November 2019 at 03:06:52 UTC, Omar wrote: the page here https://dlang.org/spec/function.html suggests you can implement a function in a different file ... mentioned the endeavour of no-bodied-functions as a way of

Re: How to simulate Window's "Press any key to continue..."

2019-11-21 Thread Mike Parker via Digitalmars-d-learn
On Friday, 22 November 2019 at 04:45:21 UTC, Mike Parker wrote: On Friday, 22 November 2019 at 04:22:07 UTC, FireController#1847 wrote: Right, but readln will only wait until the user presses the delimiter (by default Enter/Return). I want it to wait until ANY key is pressed, not a specific

Re: How to simulate Window's "Press any key to continue..."

2019-11-21 Thread Mike Parker via Digitalmars-d-learn
On Friday, 22 November 2019 at 04:22:07 UTC, FireController#1847 wrote: Right, but readln will only wait until the user presses the delimiter (by default Enter/Return). I want it to wait until ANY key is pressed, not a specific key The documentation for std.stdio.File shows two functions

Re: csvReader & specifying separator problems...

2019-11-14 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 14 November 2019 at 12:25:30 UTC, Robert M. Münch wrote: From the docs, which I find extremly hard to understand: auto csvReader(Contents = string, Malformed ErrorLevel = Malformed.throwException, Range, Separator = char)(Range input, Separator delimiter = ',', Separator quote 

DIP 1025--Dynamic Arrays Only Shrink, Never Grow--Withdrawn from Consideration

2019-11-13 Thread Mike Parker via Digitalmars-d-announce
The author of DIP 1025, "Dynamic Arrays Only Shrink, Never Grow", has withdrawn the DIP from consideration. The current round of review has been terminated and the DIP has been removed from the review queue. https://forum.dlang.org/post/iouzzeyscvwekbsan...@forum.dlang.org

DIP 1025--Dynamic Arrays Only Shrink, Never Grow--Community Review Round 1 Begins

2019-11-11 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1025, "Dynamic Arrays Only Shrink, Never Grow", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/wvbeyxlcdthqvzsgl...@forum.dlang.org *Please leave all feedback in the review thread rather than

Re: How to import & export modules

2019-11-10 Thread Mike Parker via Digitalmars-d-learn
On Monday, 11 November 2019 at 01:28:54 UTC, userTY wrote: import all; // can see App, Form and Button exported (public) symbols --- The approach of using an "all" module is an old hack that is no longer necessary. Today, the way to approach is to use a "package module".

Re: Release D 2.089.0

2019-11-06 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 3 November 2019 at 13:35:36 UTC, Martin Nowak wrote: Glad to announce D 2.089.0, ♥ to the 44 contributors. The Blog: https://dlang.org/blog/2019/11/06/dmd-2-089-0-released/ Reddit: https://www.reddit.com/r/programming/comments/dsgrc2/d_20890_released/

Re: Release D 2.089.0

2019-11-06 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 6 November 2019 at 13:49:16 UTC, Ron Tarrant wrote: On the one hand, it's nice to get a shiny, new version (thanks to all involved), but is there any way the installer can be more selective about what it tosses out so I don't have to reconfigure GtkD libs, etc. in its

Re: A question about postblit constructor

2019-11-05 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 5 November 2019 at 10:32:03 UTC, Ferhat Kurtulmuş wrote: On Tuesday, 5 November 2019 at 10:31:05 UTC, Ferhat Kurtulmuş wrote: On Tuesday, 5 November 2019 at 10:13:59 UTC, Mike Parker wrote: [...] Yep, it is obvious that my code is wrong. s1 and s2 point to the same memory

Re: A question about postblit constructor

2019-11-05 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 5 November 2019 at 08:47:05 UTC, Ferhat Kurtulmuş wrote: value of int which is 0. I wonder how new memory is allocated without an explicit malloc here. Sorry for this noob question in advance, I could not find any doc mentioning a similar case. int* vals =

Re: When will you announce DConf 2020?

2019-11-04 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 03:04:30 UTC, Murilo wrote: Oh, so they cover the costs if I can give an interesting talk? I already had several ideas in mind to speak during DConf but I never imagined that could get my costs covered. If you submit a talk proposal and it's accepted, then you

Re: Which is the active fork in DFL gui library ?

2019-11-03 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 2 November 2019 at 20:01:27 UTC, Vinod K Chandran wrote: Hi all, I just found that DFL gui library very interesting. But after some searching, i can see that DFL is inactive and there is few other forks for it. So this is my question - Which fork is good for a gui development in

Re: Which is the active fork in DFL gui library ?

2019-11-03 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 3 November 2019 at 07:06:12 UTC, Mike Parker wrote: Here's an example, winhello.d, that should work with all of the following command lines: Sorry, here's the example: == winhello.d /+ dub.sdl: name "entry" dflags "-L/SUBSYSTEM:WINDOWS" "-L/ENTRY:mainCRTStartup"

Re: When will you announce DConf 2020?

2019-11-03 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 3 November 2019 at 00:51:38 UTC, Murilo wrote: Hi guys. I'm eager to attend the next DConf, which is why I'm already planning everything about how I will travel from Brazil to the UK(or maybe Germany). When will you announce the place and date of the next DConf? When our plans are

DLang Tour Now Supports Korean

2019-11-01 Thread Mike Parker via Digitalmars-d-announce
BOSKorea has a few Korean programmers who had never used D before joining the company. Now future hires can take the DLang Tour in Korean. Thanks to Mathias Lang for initiating the translation effort. https://tour.dlang.org/tour/en/welcome/languages

DIP 1024---Shared Atomics---Community Review Round 2---Begins

2019-10-27 Thread Mike Parker via Digitalmars-d-announce
The second round of Community Review for DIP 1024, "Shared Atomics", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/jetqewtibsnrsdpcy...@forum.dlang.org *Please leave all feedback in the review thread rather than here!* Thanks!

Re: DIP 1021--Argument Ownership and Function Calls--Formal Assessment

2019-10-22 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 23 October 2019 at 04:20:19 UTC, Exil wrote: it's a bad idea. Why have two community reviews? Those are made with the assumption that the DIP will actually change between the reviews. No, that's not the assumption. You're conflating Community Review with Final Review. There

Re: DIP 1021--Argument Ownership and Function Calls--Formal Assessment

2019-10-22 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 23 October 2019 at 04:20:19 UTC, Exil wrote: Should create a DIPW process then, duck the foundation and any formalities. Which stands for DIPWalter, which simply consists of a single step where a single topic tries to convince Walter it's a bad idea. Why have two community

Re: D for sciencetific scripting / rapid protoryping

2019-10-22 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 07:40:01 UTC, Prokop Hapala wrote: 1) I'm not speaking about OpenGL and SDL specifically (that was just small example which I tried first) FYI, the BindBC bindings can be configured as dynamic (in which all the of C library functions are declared as function

DIP 1021--Argument Ownership and Function Calls--Formal Assessment

2019-10-20 Thread Mike Parker via Digitalmars-d-announce
DIP 1021, "Argument Ownership and Function Calls", has been formally accepted with minor revision. It was updated to make clear that the proposal is one piece of a bigger plan. https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1021.md

DIP 1022---foreach auto ref---Community Review Round 2 Begins

2019-10-19 Thread Mike Parker via Digitalmars-d-announce
The second round of Community Review for DIP 1022, "foreach auto ref", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/kgfzzttzjwnmhmqca...@forum.dlang.org *Please leave all feedback in the review thread rather than here!* Thanks!

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-18 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 19 October 2019 at 00:57:48 UTC, Prokop Hapala wrote: The dmech/demos also seems to be almost running just it somehow cannot find or use my libsdl.so library which it just compiled (it is in 'dmech/demos/lib')

Átila's Vision of D's Future

2019-10-15 Thread Mike Parker via Digitalmars-d-announce
Shortly after DConf, I asked Átila to consider writing a blog post once he got settled into his new role as a language maintainer. I didn't have a clear idea of what the content should be, but about three months ago GreatSam4sure requested in the forums that Átila write a post about his vision

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 5 October 2019 at 12:27:06 UTC, Mike Parker wrote: On Saturday, 5 October 2019 at 02:59:58 UTC, Paul Backus wrote: I was curious how C++17's std::variant compared to the options we have in D, like Algebraic and SumType, so I did a simple comparison of the generated assembly for

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 5 October 2019 at 02:59:58 UTC, Paul Backus wrote: I was curious how C++17's std::variant compared to the options we have in D, like Algebraic and SumType, so I did a simple comparison of the generated assembly for each of them. You can read about it at the link below. And as you

New Funding Initiatives from the D Language Foundation

2019-10-04 Thread Mike Parker via Digitalmars-d-announce
The latest post on the blog details some new funding initiatives from the D Language Foundation. This includes putting some of the HR Fund to use and seeding the first two of a set of forthcoming Bugzilla bounties.

Re: Struct initialization has no effect or error?

2019-10-02 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 3 October 2019 at 04:57:44 UTC, mipri wrote: On Thursday, 3 October 2019 at 04:33:26 UTC, Brett wrote: I was trying to avoid such things since X is quite long in name. Not a huge deal... and I do not like the syntax because it looks like a constructor call. It is a constructor

Re: Why is it difficult to reference arrays in structs?

2019-10-02 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 3 October 2019 at 04:32:52 UTC, Brett wrote: Ok, fine! auto r = Now r is a reference, great! No, r is a pointer, not a reference. D does not have reference variables. But now the semantics of using the array completely change and errors abound! Probably because you're

Re: want to know precise GC benchmarks

2019-10-01 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 1 October 2019 at 16:24:49 UTC, a11e99z wrote: why I want to know such info? CodinGame sometimes use time-limit for bot move for example 100ms, and bot will be disqualified in case no answer Simple solution: don't allocate every frame. The GC only runs when it needs to and it

DIP 1024--Shared Atomics--Community Review Round 1 Begins

2019-10-01 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1024, "Shared Atomics", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/wcoboszbrdgxcsidw...@forum.dlang.org *Please leave all feedback in the review thread rather than here!* Thanks!

Re: commonmark-d: A fast CommonMark and Github Flavoured Markdown parser, translation of MD4C

2019-10-01 Thread Mike Parker via Digitalmars-d-announce
On Monday, 30 September 2019 at 23:06:42 UTC, Guillaume Piolat wrote: Hello, commonmark-d is a D translation of MD4C, a fast SAX-like Markdown parser. Thumbs up!

Saving Money by Switching from PHP to D

2019-09-30 Thread Mike Parker via Digitalmars-d-announce
Andrea Fontana has contributed a guest post to the D blog about his company's experience moving their online magazine from PHP to D. Not only did they gain performance, they also saved quite a bit of money as a result. The blog:

Re: Help making a game with transparency

2019-09-28 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 28 September 2019 at 13:41:24 UTC, matheus wrote: Ok, I took a look over my old projects and I found exactly what you want, by the way it's from 2012. It uses Derelict 2.0 bindings and will draw a PNG image where you can move around with cursor keys. Murilo, if you do decide to

Re: Help making a game with transparency

2019-09-28 Thread Mike Parker via Digitalmars-d-learn
On Friday, 27 September 2019 at 22:55:22 UTC, Murilo wrote: Ahhh, that clears everything up. I will then leave the program without the transparency and wait until you get around to implement the fixes to it, I am not a developer, I am a scientist, I only use libraries, I don't know how to

Re: Indexed graphics for retro engine?

2019-09-19 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 19 September 2019 at 18:25:05 UTC, Shadowblitz16 wrote: I wanted to do 4bpp 16 color graphics. and I didn't want to load anything unnecessary in the image like the palette but instead supply it myself as a Color[16]; I see. In that case, I suggest you find some tutorials on

Re: combining libraries into 1 or 1 for each system?

2019-09-19 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 19 September 2019 at 18:28:25 UTC, Shadowblitz16 wrote: I mean I don't want to have multiple dependency dll's but instead just my own dll with the dependencies packed inside. of course dll is only for windows so I would like this done for mac and linux too Then statically

Re: Indexed graphics for retro engine?

2019-09-18 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 19 September 2019 at 03:47:05 UTC, Shadowblitz16 wrote: Is there a way to make a indexed graphics library that can handle importing and exporting true color images? I don't see why not. I would guess something like this could be simulated with pointers and references right?

Re: combining libraries into 1 or 1 for each system?

2019-09-18 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 19 September 2019 at 03:44:28 UTC, Shadowblitz16 wrote: let's say I have a project the relies on multiple packages.. is it possible to combine these libraries into a single one (or 1 per os) for final shipment of a program? I assume you're referring to dub packages, in which case

DIP 1021--Argument Ownership and Function Calls--Final Review Begins

2019-09-16 Thread Mike Parker via Digitalmars-d-announce
The last chance for community feedback on DIP 1021, "Argument Ownership and Function Calls", is now underway. Please do not leave any feedback in this thread, but rather in the review thread in the General forum: https://forum.dlang.org/post/udqmnxucjsnuswdas...@forum.dlang.org

Re: Make executable archive just like Java's .jar archive?

2019-09-12 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 12 September 2019 at 12:53:27 UTC, BoQsc wrote: On Thursday, 12 September 2019 at 12:52:48 UTC, BoQsc wrote: Is there a way to archive multiple .d source code files and make that archive executable, or something similar? https://en.wikipedia.org/wiki/JAR_(file_format) A JAR

Re: Using CSS Data from Within My Code

2019-09-12 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 12 September 2019 at 11:40:33 UTC, Ron Tarrant wrote: string myCSS = "tab { background-color: #f2f2f2; }"; enum will work just as well here and without the need for the variable: enum myCSS = "tab { background-color: #f2f2f2; }"; The original error was

Re: Blog Post #69: TextView and TextBuffer Basics

2019-09-10 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 10 September 2019 at 08:29:59 UTC, Ron Tarrant wrote: This morning's discussion covers the basic workings and relationship between the TextView and TextBuffer widgets. Here's the link: https://gtkdcoding.com/2019/09/10/0069-textview-and-textbuffer.html Seriously impressed that

DIP 1020--Named Parameters--Community Review Round 2 Begins

2019-09-10 Thread Mike Parker via Digitalmars-d-announce
The second round of Community Review for DIP 1020, "Named Parameters", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/guvpjsspfzaruimrm...@forum.dlang.org *Please leave all feedback in the review thread rather than here!* Thanks!

Re: DMD 2.088.0 and Other New Blog Post

2019-09-06 Thread Mike Parker via Digitalmars-d-announce
On Friday, 6 September 2019 at 14:15:14 UTC, JN wrote: Minor typo in blog post: getAvaliable. Thanks. Could use some more descriptive title on reddit, because no one who doesn't know D will click it. Perhaps something like "DMD 2.088.0 released - comes with std::string and std::vector

Re: DMD 2.088.0 and Other New Blog Post

2019-09-06 Thread Mike Parker via Digitalmars-d-announce
On Friday, 6 September 2019 at 14:32:21 UTC, Mike Parker wrote: On Friday, 6 September 2019 at 14:15:14 UTC, JN wrote: Minor typo in blog post: getAvaliable. Thanks. Could use some more descriptive title on reddit, because no one who doesn't know D will click it. Perhaps something like

DMD 2.088.0 and Other New Blog Post

2019-09-06 Thread Mike Parker via Digitalmars-d-announce
I've just published a new blog post announcing the 2.088.0 release of DMD and tacked on a few other news items at the end. Most of it will not be news to readers of the forums, but please keep an eye on the reddit comments if you've got time to spare. Blog:

DIP 1023--Resolution of Template Alias Formal Parameters in Template Functions--Community Review Round 1 Begins

2019-09-06 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1023, "Resolution of Template Alias Formal Parameters in Template Functions", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/dnyqxmgdazczwmmva...@forum.dlang.org *Please leave all feedback in

Re: Old code no longer working on any DMD compilers

2019-09-06 Thread Mike Parker via Digitalmars-d-learn
On Friday, 6 September 2019 at 05:59:30 UTC, Jamie wrote: time and fmod is called so it breaks. In case 3, with default struct arguments, I thought that the constructor I have defined was being called, however the default constructor was being called (this()) so fmod wasn't being called.

Re: Is there has an pdf document for Phobos.

2019-09-04 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 12:24:47 UTC, lili wrote: On Wednesday, 4 September 2019 at 04:21:10 UTC, Mike Parker wrote: On Wednesday, 4 September 2019 at 03:07:18 UTC, lili wrote: Hi: For some reason it too slow that some times i visited dlang.org, Can admin make a pdf document for

Re: Is there has an pdf document for Phobos.

2019-09-03 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 03:07:18 UTC, lili wrote: Hi: For some reason it too slow that some times i visited dlang.org, Can admin make a pdf document for download. Documentation is installed with the compiler.

Re: Why is sformat and formattedWrite (appender) allocating GC mem here?

2019-08-31 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 31 August 2019 at 12:07:56 UTC, cc wrote: And what, if anything, can I do to avoid it? import core.stdc.stdio : printf; There are no @nogc versions of the Phobos write* and format functions.

Re: Input/Output multiple values from function

2019-08-27 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 28 August 2019 at 04:19:49 UTC, Jabari Zakiya wrote: I have a function (say func1) that takes 1 input value (an integer number) and outputs 4 values (2 integers and 2 arrays of integers). Then inside another function (say func2) I provide the 1 input to func1 and then want to

Re: Five Projects Selected for SAOC 2019

2019-08-25 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 25 August 2019 at 13:38:24 UTC, Mike Parker wrote: The Symmetry Autumn of Code 2019 application selection process has come to an end. This year, we've got five projects instead of three. Congratulations to everyone who was selected! You can read about them and their projects over at

Five Projects Selected for SAOC 2019

2019-08-25 Thread Mike Parker via Digitalmars-d-announce
The Symmetry Autumn of Code 2019 application selection process has come to an end. This year, we've got five projects instead of three. Congratulations to everyone who was selected! You can read about them and their projects over at the D Blog:

Re: D1: Trying to update Juno Library to 1.076

2019-08-23 Thread Mike Parker via Digitalmars-d-learn
On Friday, 23 August 2019 at 16:09:16 UTC, jicman wrote: } That looks like D2 code. I am trying to compile D1 code. I think the linker is not getting something right. You might try declaring the offending functions as extern(Windows) function pointers and then loading them from the

DIP 1019--Named Arguments Lite--Final Review Begins

2019-08-23 Thread Mike Parker via Digitalmars-d-announce
The last chance for community feedback on DIP 1019, "Named Arguments Lite", is now underway. Please do not leave any feedback in this thread, but rather in the review thread in the General forum: https://forum.dlang.org/post/gcirbltrwuhntbsvf...@forum.dlang.org

SAOC 2019 Applications Closed

2019-08-19 Thread Mike Parker via Digitalmars-d-announce
I want to thank everyone who has submitted an application to SAOC 2019. The application deadline has passed and we are no longer accepting new applications. This year, the SAOC committee consists of the following members: John Colvin Mathias Lang Átila Neves Robert Schadek Ethan Watson They

The New Bug Bounty System

2019-08-17 Thread Mike Parker via Digitalmars-d-announce
Thanks to BOS Platform Korea, the new Bug Bounty system is live. Anyone willing to seed new bounties or increase the existing ones is free to do so. We hope to see the number of bounties grow and a few folks make some money from it. The details are in the blog post:

SAOC 2019 Application Deadline

2019-08-16 Thread Mike Parker via Digitalmars-d-announce
The Symmetry Autumn of Code application deadline is this Sunday (midnight AoE). If you haven't yet sent your application in, be sure to read the SAOC page to make sure you get the details right. https://dlang.org/blog/symmetry-autumn-of-code/ Don't be late!

Re: How should I sort a doubly linked list the D way?

2019-08-13 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 13 August 2019 at 22:12:23 UTC, Mirjam Akkersdijk wrote: Though, it left me with some semi-offtopic questions unanswered: (1) Ali, do you mean that from an optimization viewpoint, it's better to keep appending like `nodes ~= ...` instead of setting the length first? I would like

Re: Why is this allowed? Inheritance variable shadowing

2019-08-13 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 13 August 2019 at 04:40:53 UTC, Chris Katko wrote: You can drop this straight into run.dlang.io: import std.stdio; class base{ float x=1;} class child : base {float x=2;} //shadows base variable! void main() { base []array; child c = new child; array ~= c;

D Summer School Postmortem

2019-08-08 Thread Mike Parker via Digitalmars-d-announce
Razvan Nitu and Eduard Staniloiu recently announced in the forums that they taught a D Summer School at University POLITEHNICA of Bucharest. They were kind enough to do a write-up for the D Blog. Please give it a read and wish them luck for V2! The blog:

DIP 1022--foreach auto ref--Community Review Round 1 Begins

2019-08-08 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1022, "foreach auto ref", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/nphczadgbedjzowuh...@forum.dlang.org *Please leave all feedback in the review thread rather than here!* In other DIP

Re: The DLang Swag Emporium is Open For Business!

2019-08-02 Thread Mike Parker via Digitalmars-d-announce
On Friday, 2 August 2019 at 07:23:28 UTC, JN wrote: By the way, why call it Digital Mars logo and not just D logo? Because I think of it as the "Digital Mars D logo" as opposed to the "D Rocket logo" or the "Royal D logo". I've renamed those items to "Digital Mars D".

Re: The DLang Swag Emporium is Open For Business!

2019-08-01 Thread Mike Parker via Digitalmars-d-announce
On Friday, 2 August 2019 at 01:13:33 UTC, James Blachly wrote: Looking great. Can you set up die-cut stickers of the D Rocket logo? I've added standard stickers (round & square on the store page, though you can select the shape during the order process) and die-cut vinyl stickers. It

The DLang Swag Emporium is Open For Business!

2019-08-01 Thread Mike Parker via Digitalmars-d-announce
I know some of you have been waiting for this and I apologize for the delay. You can now get your hands on some DLang swag and support the D Language Foundation at the same time. See the blog post for details: https://dlang.org/blog/2019/08/01/the-dlang-swag-emporium-and-more/

Re: Seoul D Meetup--August 14th, 7:00 PM

2019-07-31 Thread Mike Parker via Digitalmars-d-announce
Please let the talk be recorded So that people can watch it later Sorry, but we won’t be recording it this time. Maybe we can start doing so at future meetups.

Seoul D Meetup--August 14th, 7:00 PM

2019-07-31 Thread Mike Parker via Digitalmars-d-announce
For the hordes of D programmers hiding somewhere in Seoul, Korea, our next Seoul D meetup is at 7:00 PM on August, 14, at Hyundai Studio Black near Gangnam Station. We've got ourselves a Meetup page now [1], so we're moving up in the world. We're calling the event "An Introduction to D" as

Re: How to contact people on the forum

2019-07-24 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 24 July 2019 at 16:37:33 UTC, Greatsam4sure wrote: On Wednesday, 24 July 2019 at 15:56:43 UTC, drug wrote: 24.07.2019 18:51, Greatsam4sure пишет: Good day everyone. I am thinking,  if there is a  way to contact any person on dlang forums through mail or any other means. How do I

<    5   6   7   8   9   10   11   12   13   14   >