Thread overview
[Issue 13894] tupleof does not exclude hidden members
Dec 28, 2014
Kenji Hara
Dec 17, 2022
Iain Buclaw
December 28, 2014
https://issues.dlang.org/show_bug.cgi?id=13894

--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> ---
> > The .tupleof property returns an ExpressionTuple of all the fields in the class, excluding the hidden fields and the fields in the base class.

The spec is in the section "Class Properties", so in the strict sense, it would not affect the semantics of struct tupleof property.

>From the view of implementation side, the inconsistency was introduced by
fixing issue 1418. By the fix class tupleof was changed not listing hidden field but struct tupleof was not changed.

>From the user side, S.tupleof[$-1] is sometimes used to actually handle the
hidden context pointer.

Therefore, modifying tupleof behavior may affect not small code.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=13894

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

https://github.com/dlang/dmd/issues/17692

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

--