December 18, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9178

           Summary: UDA: getAttributes does not play well with topleof
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: puneet@coverify.org


--- Comment #0 from Puneet Goel <puneet@coverify.org> 2012-12-18 09:18:57 PST ---
http://forum.dlang.org/thread/mailman.2763.1355745364.5162.digitalmars-d@puremagic.com

I am trying to get the user defined attributes for all the fields of a class. I am getting the following error:

  Error: first argument is not a symbol
  tuple(false)


// test code

template Tuple(T...) {
  alias T Tuple;
}

enum Bar;
class Foo {
  @Bar int a;
}

void main()
{
  Foo foo = new Foo;
  alias Tuple!(__traits(getAttributes, foo.tupleof[0])) tp;
  pragma(msg, tp);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9178


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-17 23:16:13 PST ---
https://github.com/D-Programming-Language/dmd/pull/1505

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9178


Jacob Carlborg <doob@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doob@me.com


--- Comment #2 from Jacob Carlborg <doob@me.com> 2013-01-17 23:37:05 PST ---
Awesome.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9178



--- Comment #3 from github-bugzilla@puremagic.com 2013-01-19 11:03:48 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/12a54af800ca57456066825ef7a41c5151efbae9 fix Issue 9178 - UDA: getAttributes does not play well with tupleof

https://github.com/D-Programming-Language/dmd/commit/9b734c5d9ff4440e6479a2b10c866e5f1d837fab Merge pull request #1505 from 9rnsr/refactor_tiargs

Refactor semanticTiargs() and fix Issue 9178 - UDA: getAttributes does not play
well with tupleof

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9178


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home