Thread overview
[Issue 13567] Attribute inference for private functions
Aug 12, 2015
Walter Bright
Aug 12, 2015
ZombineDev
Aug 12, 2015
Martin Nowak
Aug 13, 2015
ZombineDev
Jun 08, 2016
Daniel Nielsen
Jul 01, 2017
ZombineDev
Dec 17, 2022
Iain Buclaw
October 02, 2014
https://issues.dlang.org/show_bug.cgi?id=13567

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh@quickfur.ath.cx

--- Comment #1 from hsteoh@quickfur.ath.cx ---
I agree with this. Private functions don't suffer from the same objections raised against adding inference to auto functions, so perhaps this is the way to go to increase the scope of attribute inference in D.

--
August 12, 2015
https://issues.dlang.org/show_bug.cgi?id=13567

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
Example:

  private void bar() { }

  void foo() @safe {
    bar();
  }

should work.

--
August 12, 2015
https://issues.dlang.org/show_bug.cgi?id=13567

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--- Comment #3 from ZombineDev <petar.p.kirov@gmail.com> ---
Walter, so you agree that private functions should get attribute inference, like auto retrning functions?

--
August 12, 2015
https://issues.dlang.org/show_bug.cgi?id=13567

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu

--- Comment #4 from Martin Nowak <code@dawg.eu> ---
It would be a good step forward to less attribute clutter.

--
August 13, 2015
https://issues.dlang.org/show_bug.cgi?id=13567

--- Comment #5 from ZombineDev <petar.p.kirov@gmail.com> ---
Yes, it would definitely be a step in the right direction. A lot more code will benefit from this because private functions are more common than auto-returning and also people tend to neglect putting attributes on private functions more than on public ones.

--
June 08, 2016
https://issues.dlang.org/show_bug.cgi?id=13567

Daniel Nielsen <goxryz@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=16138

--
July 01, 2017
https://issues.dlang.org/show_bug.cgi?id=13567

--- Comment #6 from ZombineDev <petar.p.kirov@gmail.com> ---
*** Issue 16138 has been marked as a duplicate of this issue. ***

--
April 29, 2020
https://issues.dlang.org/show_bug.cgi?id=13567

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=20786

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=13567

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--