www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Beta 2.099.0

reply Martin Nowak <code dawg.eu> writes:
Glad to announce the first beta for the 2.099.0 release, ♥ to the 
99 contributors.

http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.099.0.html

As usual please report any bugs at
https://issues.dlang.org

-Martin
Feb 15 2022
next sibling parent reply Basile B. <b2.temp gmx.com> writes:
On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak wrote:
 Glad to announce the first beta for the 2.099.0 release, ♥ to 
 the 99 contributors.

 http://dlang.org/download.html#dmd_beta
 http://dlang.org/changelog/2.099.0.html

 As usual please report any bugs at
 https://issues.dlang.org

 -Martin
Issue 3 is wrongly [referenced]. I will not create a bugzilla entry because I think this is not fixable [referenced]: https://dlang.org/changelog/2.099.0.html#bugfix-list
Feb 15 2022
next sibling parent steven kladitis <stevenkladitis gmail.com> writes:
On Tuesday, 15 February 2022 at 13:27:18 UTC, Basile B. wrote:
 On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak 
 wrote:
 Glad to announce the first beta for the 2.099.0 release, ♥ to 
 the 99 contributors.

 http://dlang.org/download.html#dmd_beta
 http://dlang.org/changelog/2.099.0.html

 As usual please report any bugs at
 https://issues.dlang.org

 -Martin
Issue 3 is wrongly [referenced]. I will not create a bugzilla entry because I think this is not fixable [referenced]: https://dlang.org/changelog/2.099.0.html#bugfix-list
You are not allowed to download file. It says invalid html ......
Feb 15 2022
prev sibling parent reply Iain Buclaw <ibuclaw gdcproject.org> writes:
On Tuesday, 15 February 2022 at 13:27:18 UTC, Basile B. wrote:
 On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak 
 wrote:
 Glad to announce the first beta for the 2.099.0 release, ♥ to 
 the 99 contributors.

 http://dlang.org/download.html#dmd_beta
 http://dlang.org/changelog/2.099.0.html

 As usual please report any bugs at
 https://issues.dlang.org

 -Martin
Issue 3 is wrongly [referenced]. I will not create a bugzilla entry because I think this is not fixable [referenced]: https://dlang.org/changelog/2.099.0.html#bugfix-list
Maybe an issue could be raised against the [dlang-bot](https://github.com/dlang/dlang-bot) to request better handling of ambiguous commit messages?
Feb 15 2022
parent reply Basile B. <b2.temp gmx.com> writes:
On Tuesday, 15 February 2022 at 16:12:25 UTC, Iain Buclaw wrote:
 On Tuesday, 15 February 2022 at 13:27:18 UTC, Basile B. wrote:
 On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak 
 wrote:
 Glad to announce the first beta for the 2.099.0 release, ♥ to 
 the 99 contributors.

 http://dlang.org/download.html#dmd_beta
 http://dlang.org/changelog/2.099.0.html

 As usual please report any bugs at
 https://issues.dlang.org

 -Martin
Issue 3 is wrongly [referenced]. I will not create a bugzilla entry because I think this is not fixable [referenced]: https://dlang.org/changelog/2.099.0.html#bugfix-list
Maybe an issue could be raised against the [dlang-bot](https://github.com/dlang/dlang-bot) to request better handling of ambiguous commit messages?
Yes but in the meantime I find strange that you have just approved a PR that will have the same effect [with issue 2]. [with issue 2]: https://github.com/dlang/dmd/pull/13663
Feb 16 2022
parent Iain Buclaw <ibuclaw gdcproject.org> writes:
On Wednesday, 16 February 2022 at 09:05:39 UTC, Basile B. wrote:
 On Tuesday, 15 February 2022 at 16:12:25 UTC, Iain Buclaw wrote:
 Maybe an issue could be raised against the 
 [dlang-bot](https://github.com/dlang/dlang-bot) to request 
 better handling of ambiguous commit messages?
Yes but in the meantime I find strange that you have just approved a PR that will have the same effect [with issue 2]. [with issue 2]: https://github.com/dlang/dmd/pull/13663
I probably reviewed it on my phone - the github app is very good at hiding lots of information I would have otherwise spotted on desktop. :-)
Feb 17 2022
prev sibling next sibling parent reply forkit <forkit gmail.com> writes:
On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak wrote:

I was so hoping I could now begin using -betterC on Windows...

but no .. :-(

i.e. stdout, stdin, stderr ...still cannot link...
Feb 15 2022
parent reply max haughton <maxhaton gmail.com> writes:
On Wednesday, 16 February 2022 at 01:38:08 UTC, forkit wrote:
 On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak 
 wrote:

 I was so hoping I could now begin using -betterC on Windows...

 but no .. :-(

 i.e. stdout, stdin, stderr ...still cannot link...
Can you not define them yourself in the meantime?
Feb 15 2022
parent reply forkit <forkit gmail.com> writes:
On Wednesday, 16 February 2022 at 04:14:01 UTC, max haughton 
wrote:
 On Wednesday, 16 February 2022 at 01:38:08 UTC, forkit wrote:
 On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak 
 wrote:

 I was so hoping I could now begin using -betterC on Windows...

 but no .. :-(

 i.e. stdout, stdin, stderr ...still cannot link...
Can you not define them yourself in the meantime?
err.. howdy doody dat?
Feb 15 2022
next sibling parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
On 16/02/2022 06:53, forkit wrote:
 On Wednesday, 16 February 2022 at 04:14:01 UTC, max haughton wrote:
 On Wednesday, 16 February 2022 at 01:38:08 UTC, forkit wrote:
 On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak wrote:

 I was so hoping I could now begin using -betterC on Windows...

 but no .. :-(

 i.e. stdout, stdin, stderr ...still cannot link...
Can you not define them yourself in the meantime?
err.. howdy doody dat?
The PR was too late for the beta, but this is the basic change: https://github.com/dlang/druntime/pull/3740/files#diff-5cbe9748431681a766784b1bd997444d58d436a26a345b32397daae478f85c5dR907 Please note that this only supports the C runtimes for VS 2015 or later. If you are using the mingw import libraries, you'll have to switch to the corresponding version, too. Without a VS environment, -mscrtlib=vcruntime140 should do, but the tests had to add -Lvcruntime140.lib -Llegacy_stdio_definitions.lib -L/NODEFAULTLIB:msvcrt120.lib on the command line to do that.
Feb 15 2022
next sibling parent forkit <forkit gmail.com> writes:
On Wednesday, 16 February 2022 at 06:55:57 UTC, Rainer Schuetze 
wrote:

yep. working just fine now :-)


// --- compile with -betterC

import core.stdc.stdio;

extern(C):

FILE* __acrt_iob_func(int hnd);
FILE* stdin()() { return __acrt_iob_func(0); }
FILE* stdout()() { return __acrt_iob_func(1); }
FILE* stderr()() { return __acrt_iob_func(2); }

int main()
{
     fprintf(stdout, "Enter a character: ");

     int ch;
     ch = getc(stdin);

     if (ch == '\n')
     {
         fprintf(stderr, "You didn't enter a character.\n");
     }
     else
     {
         printf("You entered %c \n", ch);
     }

     return 0;
}

// ---
Feb 15 2022
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 2/15/2022 10:55 PM, Rainer Schuetze wrote:
 The PR was too late for the beta, but this is the basic change: 
 https://github.com/dlang/druntime/pull/3740/files#diff-5cbe9748431681a766784b1bd997444d58d436a26a345b32
97daae478f85c5dR907 
Sweet!
Feb 16 2022
prev sibling parent max haughton <maxhaton gmail.com> writes:
On Wednesday, 16 February 2022 at 05:53:25 UTC, forkit wrote:
 On Wednesday, 16 February 2022 at 04:14:01 UTC, max haughton 
 wrote:
 On Wednesday, 16 February 2022 at 01:38:08 UTC, forkit wrote:
 On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak 
 wrote:

 I was so hoping I could now begin using -betterC on Windows...

 but no .. :-(

 i.e. stdout, stdin, stderr ...still cannot link...
Can you not define them yourself in the meantime?
err.. howdy doody dat?
You have the source code to druntime, can't you just copy the definitions you want
Feb 16 2022
prev sibling next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
Now that the beta is released (Thank you, Martin!) could we get the 
documentation for __import pulled?

https://github.com/dlang/dlang.org/pull/3182
Feb 16 2022
prev sibling next sibling parent 9il <ilyayaroshenko gmail.com> writes:
On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak wrote:
 As usual please report any bugs at
 https://issues.dlang.org
The compiler has some mangling or attributes deduction bug when compiling or linking tagged self-referencing algebraic. The GitHub job: https://github.com/libmir/mir-ion/runs/5229969072?check_suite_focus=true I report the bug here because issues.dlang.org doesn't like my email: The e-mail address you entered ( my GMAIL ) didn't pass our syntax checking for a legal email address. A legal address must contain exactly one ' ', and at least one '.' after the . Currently, registering using Gmail addresses is not allowed due to spam. It also must not contain any illegal characters.
Feb 17 2022
prev sibling next sibling parent reply Martin Tschierschke <mt smartdolphin.de> writes:
On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak wrote:
 Glad to announce the first beta for the 2.099.0 release, ♥ to 
 the 99 contributors.
[...]
 http://dlang.org/changelog/2.099.0.html
[...] Thank you! It is amazing: ♥ to 99 contributors! (Should I say the language is extremely alive!) Regards MT
Feb 17 2022
parent rikki cattermole <rikki cattermole.co.nz> writes:
There are a few goodies hiding in the nightlies that didn't make it into 
the beta.

Stuff like https://issues.dlang.org/show_bug.cgi?id=18362

And https://dlang.org/changelog/pending.html#actual-dynamiclibrary
(which I did :3)

This is gonna be a good release I think!
Feb 17 2022
prev sibling next sibling parent Nick Treleaven <nick geany.org> writes:
On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak wrote:
 http://dlang.org/changelog/2.099.0.html
Thanks. Regarding: https://dlang.org/changelog/2.099.0.html#allow_casting_from_typetuple_to_typetuple I don't understand why this is allowed: ```d alias Tuple(T...) = T; void foo() { Tuple!(int, int) tup; auto foo = cast(long) tup; pragma(msg, typeof(foo)); // (int, int) } ``` Casting 2 values to one type is weird, and why does it not affect the result type? https://github.com/dlang/dmd/pull/13501#discussion_r808203393
Feb 17 2022
prev sibling parent Martin Nowak <code dawg.eu> writes:
On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak wrote:
 Glad to announce the first beta for the 2.099.0 release, ♥ to 
 the 99 contributors.
Release Candidate is live now.
 http://dlang.org/download.html#dmd_beta
 http://dlang.org/changelog/2.099.0.html

 As usual please report any bugs at
 https://issues.dlang.org

 -Martin
Mar 02 2022