[Issue 8109] typeof(function) within functions

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

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P4

--


[Issue 8109] typeof(function) within functions

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8109

--- Comment #5 from Dlang Bot  ---
@NilsLankila created dlang/dmd pull request #11538 "add
`__traits(getCurrentFunction)`" mentioning this issue:

- add `__traits(getCurrentFunction)`

  - fix issue 8109
  - fix issue 9306

  This new traits is a shortcut allowing to call the function we
  are in without using `mixin` and `__FUNCTION__` tricks.

https://github.com/dlang/dmd/pull/11538

--


[Issue 8109] typeof(function) within functions

2020-03-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8109

--- Comment #4 from Manu  ---
Yeah good point.
__FUNCTION__ really should have been that symbol you describe, then you could
use __FUNCTION__.stringof or mangleof, or typeof(), etc...

Maybe introduce __function__ which is the symbol?

--


[Issue 8109] typeof(function) within functions

2020-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8109

Basile-z  changed:

   What|Removed |Added

 CC|b2.t...@gmx.com |

--


[Issue 8109] typeof(function) within functions

2019-06-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8109

Basile-z  changed:

   What|Removed |Added

 CC||b2.t...@gmx.com

--- Comment #3 from Basile-z  ---
What's needed is not a special typeof(function), but more a new symbol that
represents the function we're in and that would work with typeof(). In addition
it would be nice to have a special symbol that would represent the tuple of
parameters.

using metaprog and __FUNCTION__ is known to work only when the current func has
no overload.

--


[Issue 8109] typeof(function) within functions

2019-06-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8109

--- Comment #2 from Manu  ---
I have needed this many times, and I think it's an obvious hole, especially in
contrast to the presence of all the others.

--


[Issue 8109] typeof(function) within functions

2019-06-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8109

Nicholas Wilson  changed:

   What|Removed |Added

 CC||iamthewilsona...@hotmail.co
   ||m

--- Comment #1 from Nicholas Wilson  ---
So, typeof(this) and typeof(super) are just regular expression typeofs,
typeof(return) is special because it needs deferred analysis when the return
type is auto. 

This would effectively be just as special, if not more so. Do you still need
this?

--


[Issue 8109] typeof(function) within functions

2016-02-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8109

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--