On Tuesday, 6 November 2012 at 07:55:51 UTC, Walter Bright wrote:
References:

http://www.digitalmars.com/d/archives/digitalmars/D/Custom_attributes_again_163042.html

http://www.digitalmars.com/d/archives/digitalmars/D/custom_attribute_proposal_yeah_another_one_163246.html


I tried to build DMD git for dpaste, so people can play with UDA but DMD segfaults when building Phobos

Program received signal SIGSEGV, Segmentation fault.
0x0000000000403179 in ClassDeclaration::getAccess(Dsymbol*) ()
(gdb) bt
#0  0x0000000000403179 in ClassDeclaration::getAccess(Dsymbol*) ()
#1 0x0000000000403614 in AggregateDeclaration::accessCheck(Loc, Scope*, Dsymbol*) ()
#2  0x0000000000459f36 in CallExp::semantic(Scope*) ()
#3  0x00000000004ccceb in ExpStatement::semantic(Scope*) ()
#4  0x00000000004d0cdd in CompoundStatement::semantic(Scope*) ()
#5  0x000000000046b830 in FuncDeclaration::semantic3(Scope*) ()
#6  0x0000000000448418 in FuncExp::semantic(Scope*) ()
#7  0x00000000004a0a0a in TypeTypeof::semantic(Loc, Scope*) ()
#8  0x0000000000499b61 in Type::trySemantic(Loc, Scope*) ()
#9  0x000000000044e16e in IsExp::semantic(Scope*) ()
#10 0x0000000000427e4a in StaticIfCondition::include(Scope*, ScopeDsymbol*) () #11 0x00000000004058e2 in ConditionalDeclaration::include(Scope*, ScopeDsymbol*) () #12 0x0000000000405987 in StaticIfDeclaration::include(Scope*, ScopeDsymbol*) () #13 0x0000000000403fe0 in AttribDeclaration::addMember(Scope*, ScopeDsymbol*, int) () #14 0x0000000000405add in StaticIfDeclaration::addMember(Scope*, ScopeDsymbol*, int) () #15 0x0000000000404015 in AttribDeclaration::addMember(Scope*, ScopeDsymbol*, int) ()


Well, anyways, I fetched package prepared in first post.
So folks, you can play with UDA on http://dpaste.dzfl.pl - by picking DMD2 git - without messing with DMD packages in your OS :)

http://dpaste.dzfl.pl/9c2e8b20

Also if I declare string with UDA inside main() I get error:
http://dpaste.dzfl.pl/909a34c8

Reply via email to