[Issue 18618] templated functions should in general have their attributes inferred

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18618

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P4

--


[Issue 18618] templated functions should in general have their attributes inferred

2018-03-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18618

--- Comment #2 from Carsten Blüggel  ---
(In reply to Jonathan M Davis from comment #1)
> Templated functions should have their attributes inferred when whether
> attributes make sense depend on the template arguments (which the often do).
> However, if the attributes don't depend on the template arguments, then they
> really should be explicit. Whether any of the ones listed should have
> attributes inferred which currently are explicit, I don't know (I'd have to
> study them to know), and it's quite possible that all of the attributes
> listed here should be removed, but I don't think that it's a good policy to
> just not put attributes on templated functions. Whether they should be there
> or not depends on whether they depend on the template arguments.

Your guideline is new for me (but makes sense to me).
Please, add this to https://dlang.org/dstyle.html, which "misguided" me.

--


[Issue 18618] templated functions should in general have their attributes inferred

2018-03-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18618

Jonathan M Davis  changed:

   What|Removed |Added

 CC||issues.dl...@jmdavisprog.co
   ||m

--- Comment #1 from Jonathan M Davis  ---
Templated functions should have their attributes inferred when whether
attributes make sense depend on the template arguments (which the often do).
However, if the attributes don't depend on the template arguments, then they
really should be explicit. Whether any of the ones listed should have
attributes inferred which currently are explicit, I don't know (I'd have to
study them to know), and it's quite possible that all of the attributes listed
here should be removed, but I don't think that it's a good policy to just not
put attributes on templated functions. Whether they should be there or not
depends on whether they depend on the template arguments.

--


[Issue 18618] templated functions should in general have their attributes inferred

2018-03-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18618

Carsten Blüggel  changed:

   What|Removed |Added

 CC||chi...@posteo.net

--


[Issue 18618] templated functions should in general have their attributes inferred

2018-03-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18618

Timothee Cour  changed:

   What|Removed |Added

 CC||greensunn...@gmail.com,
   ||timothee.co...@gmail.com

--