Thread overview
[Issue 24136] Support shortened methods syntax
Sep 04, 2023
Arokh Slade
Sep 04, 2023
Arokh Slade
Oct 02, 2023
Rainer Schuetze
September 04, 2023
https://issues.dlang.org/show_bug.cgi?id=24136

--- Comment #1 from Elias Batek (0xEAB) <desisma@heidel.beer> ---
Error message:

errors in imported modules: Error: C:\D\dmd2\src\phobos\std\range\package.d(1028): => shortened method not enabled, compile with compiler switch -preview=shortenedMethods

ArokhSlade reports that…

> adding the switch doesn't change a thing

--
September 04, 2023
https://issues.dlang.org/show_bug.cgi?id=24136

--- Comment #2 from Elias Batek (0xEAB) <desisma@heidel.beer> ---
(In reply to Elias Batek (0xEAB) from comment #1)
> > adding the switch doesn't change a thing

*change anything

--
September 04, 2023
https://issues.dlang.org/show_bug.cgi?id=24136

Arokh Slade <arokhslade@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arokhslade@gmail.com

--- Comment #3 from Arokh Slade <arokhslade@gmail.com> ---
Created attachment 1890
  --> https://issues.dlang.org/attachment.cgi?id=1890&action=edit
screenshot: different error message on dmd 2.102.2

screenshot shows the situation with dmd 2.102.2
a new solution & project in visual studio 2022 (17.7.3) produces different
error messages but, i presume, similar issue.
even complains about a file that neither was part of the solution nor opened in
the workspace at all (but opened previously & closed).
also shows compiling from cli works fine.

--
September 04, 2023
https://issues.dlang.org/show_bug.cgi?id=24136

--- Comment #4 from Arokh Slade <arokhslade@gmail.com> ---
Created attachment 1891
  --> https://issues.dlang.org/attachment.cgi?id=1891&action=edit
screenshot: no error message on dmd 2.094.2

this screenshot shows that the issue does not occur on an even older version of
dmd (2.094.2).
(also shows that compiling still fails, because visual-d doesn't know the right
path  to link.exe (and i don't know how to tell it) but i understand that's a
separate issue.)

--
October 02, 2023
https://issues.dlang.org/show_bug.cgi?id=24136

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de

--- Comment #5 from Rainer Schuetze <r.sagitario@gmx.de> ---
The errors shown are from intellisense. This is caused by the fact that the dmd-engine used for intellisense has not been updated in a while, but the imported files from phobos and druntime are newer. So it fails to recognize some constructs introduced by later dmd releases. Unfortunately, this also goes the other way: a newer engine might expect specific declaration/templates in the runtime that older versions don't have.

The compilation is not affected (as long as the command line interface to dmd is not changed), the link error is caused by dmd 2.094 not knowing about VS 2022.

--
October 18, 2023
https://issues.dlang.org/show_bug.cgi?id=24136

--- Comment #6 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/visuald/issues/240

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--