Finding UDAs with Templates

2013-07-22 Thread Paul O';Neil
I'm trying to write some code that finds all the members of a class that have a particular user defined attribute. My current attempt is at https://github.com/todayman/d_template_experiments/tree/8fccd27d7d5557ec6e2f0614374cf5f79fe80b4c I would like to have a static method that returns an arra

Re: Finding UDAs with Templates

2013-07-23 Thread Paul O';Neil
I basically ended up doing what Jacob suggested. To deal with the extra members from "mixin Signal" by using the compiles trait to avoid the normal case for them. Thanks for the help. Paul

Multiple declarations in a C++ namespace

2014-10-30 Thread Paul O';Neil via Digitalmars-d-learn
namespace cpp.ns conflicts with namespace cpp.ns at cpp_test.d(3) What does this mean and how do I fix it? Thanks! -- Paul O'Neil Github / IRC: todayman

Re: Multiple declarations in a C++ namespace

2014-10-31 Thread Paul O';Neil via Digitalmars-d-learn
On 10/31/2014 12:55 AM, Meta wrote: > On Friday, 31 October 2014 at 02:01:00 UTC, Paul O'Neil wrote: >> I'm trying to bind to some C++ code, but when I compile the D side, >> there are errors. Here's my reduced test case: >> >> // C++ >> n

Binding non-trivial C++ structs

2014-12-16 Thread Paul O';Neil via Digitalmars-d-learn
for the questions: 1) Is this supported? 2) If so, how do I actually do it? Thanks Paul O'Neil [1] C++: namespace binding { class string { char * buffer; size_t length; public: string(); string(const string& other); string(string&&); string(cons

Re: Binding non-trivial C++ structs

2014-12-17 Thread Paul O';Neil via Digitalmars-d-learn
On 12/17/2014 03:01 AM, Kagamin wrote: > previous thread: > http://forum.dlang.org/post/mailman.1464.1415039051.9932.digitalmar...@puremagic.com > I read that thread. I don't understand if / how it answers this question. -- Paul O'Neil Github / IRC: todayman

Re: Nested C++ namespace library linking

2015-01-20 Thread Paul O';Neil via Digitalmars-d-learn
fully qualifying foo and Type but I end up with the exact same error : A.B.foo(A.B.Type()); Looks like a bug to me. --- Paul O'Neil Github / IRC: todayman

Passing myself, a struct, as a C callback context

2015-03-29 Thread Paul O';Neil via Digitalmars-d-learn
rs/rx.d#L177 . The msg object eventually gets passed to the registration function. Thanks, -- Paul O'Neil Github / IRC: todayman

Re: Passing myself, a struct, as a C callback context

2015-03-29 Thread Paul O';Neil via Digitalmars-d-learn
On 03/29/2015 10:57 PM, weaselcat wrote: > On Monday, 30 March 2015 at 02:53:36 UTC, Paul O'Neil wrote: > >> As of dmd 2.067, doing "&this" is deprecated. > > where is this documented? I don't see it in the release notes. I don't see it in the r

Re: Passing myself, a struct, as a C callback context

2015-03-30 Thread Paul O';Neil via Digitalmars-d-learn
if those who made this change thought of this problem? > > -Steve Thanks for the explanation. This makes a lot of sense - I forgot that "ref" actually means "special pointer." Luckily, I don't plan on overriding opCast! -- Paul O'Neil Github / IRC: todayman