From: Ewald A. <ew...@ew...> - 2002-12-18 20:32:52
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all, I just wanted to let you know, that I have started creating a framework for c++ very similar to your mock object implementation. To be honest, currently it is rather a copy of your latest package which I am converting to c++ as good as possible, since I want to have the same interfaces to be compatible and make life easier for users using both java and c++. The homepage is at http://mockpp.sf.net but due to my early stage there is currently nothing for download yet. Unfortunatley I am not very familiar with java but I hope to get some information here if I get stuck :-) cheers Ewald - -- Ewald Arnold, Germany mailto:ewald at ewald-arnold dot de mobil/sms:+49-162-8001240 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+ANtnXyQcrD0ZXUYRAt9QAJsG65P5Zs22UFO0qkKB+FHUgXpiewCfQfvZ hJQksNIsEKMoDWwU21WS9i0= =fdlO -----END PGP SIGNATURE----- |
From: <je...@mk...> - 2002-12-19 09:32:39
|
Cool, I'll try and get an announcement up on www.mockobjects.com sometime next week. Any chance you could put the code into cvs somewhere even if it doesn't work yet it'd be nice to see where your going with it. Though I must admit that C++ isn't my strong point but it might give me a few insights into how things work. Quoting Ewald Arnold <ew...@ew...>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello all, > > I just wanted to let you know, that I have started creating a framework for > > c++ very similar to your mock object implementation. > > To be honest, currently it is rather a copy of your latest package which I am > > converting to c++ as good as possible, since I want to have the same > interfaces to be compatible and make life easier for users using both java > and c++. > > The homepage is at http://mockpp.sf.net but due to my early stage there is > currently nothing for download yet. > > Unfortunatley I am not very familiar with java but I hope to get some > information here if I get stuck :-) > > cheers > Ewald > > - -- > Ewald Arnold, Germany > mailto:ewald at ewald-arnold dot de > mobil/sms:+49-162-8001240 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE+ANtnXyQcrD0ZXUYRAt9QAJsG65P5Zs22UFO0qkKB+FHUgXpiewCfQfvZ > hJQksNIsEKMoDWwU21WS9i0= > =fdlO > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Mockobjects-java-dev mailing list > Moc...@li... > https://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev > |
From: Ewald A. <mo...@ew...> - 2002-12-20 04:50:21
|
Hello, nice to get some feedback :-) > Any chance you could put the code into cvs somewhere even if it doesn't I want to convert at least the core files. So I think I will upload this weekend for the first time :-) but it certainly not compile.. There are some java related questions: - a "synchronized" method is a threadsafe method and provides some form of mutual exclusion? - Verfier.java contains some parameters of type "Field". What does this mean and how could one solve this with c++? I guess there will be more when I really start to make it work. cheers Ewald -- Ewald Arnold, Germany mailto:ewald at ewald-arnold dot de mobil/sms:+49-162-8001240 |
From: Scott L. <sl...@sl...> - 2002-12-20 08:02:18
|
Ewald Arnold wrote: > - a "synchronized" method is a threadsafe method and provides some form of > mutual exclusion? Yes. Every Object (and everything derives from object) has a built-in mutex. "synchronized" methods and blocks acquire the mutex on entry and release it on exit. > - Verfier.java contains some parameters of type "Field". What does this mean > and how could one solve this with c++? Hmm, that's using the Java introspection API. C++ doesn't have anything like that. I don't think a verifier for an arbitrary class is possible. You'll need to make each class call verify for each of its verifiable members. Maybe verifiable could take a parameter of a collection to add itself to so this is easier. Scott |
From: Steve F. <st...@m3...> - 2002-12-20 10:26:12
|
While C++ may be missing reflection (except for the dynamic casts), you might be able to do something interesting with templates and macros. We didn't always have the Verifier, so it's perfectly possible to do set up the verify method by hand. S. Scott Lamb wrote: > Ewald Arnold wrote: >> - Verfier.java contains some parameters of type "Field". What does >> this mean and how could one solve this with c++? > > Hmm, that's using the Java introspection API. C++ doesn't have anything > like that. I don't think a verifier for an arbitrary class is possible. > You'll need to make each class call verify for each of its verifiable > members. Maybe verifiable could take a parameter of a collection to add > itself to so this is easier. |