On Tue, 2007-07-17 at 12:11 +1000, skaller wrote:
> On Tue, 2007-07-17 at 11:13 +1000, skaller wrote:
> > On Mon, 2007-07-16 at 16:40 -0700, Raoul Duke wrote:
>
> > First make a binding like:
>
> Now I'll give some explanation, because this uses
> quite a lot of features :)
One more clarification. What I described is a full scale
treatment of 'Foo' as a standalone library to be used.
A simpler treatment is just to put:
///////////////////
header """
class Foo
{
public:
Foo(int id);
~Foo();
int getId();
private:
int _id;
};
""";
body """
Foo::Foo(int id) :
_id(id)
{ }
Foo::~Foo()
{ }
int Foo::getId()
{
return(_id);
}
""";
////////////////
into the Felix program. Then you don't need any resource
management at all: you will unconditionally get the literal
C++ above emitted in the client program *.hpp and *.cpp
files respectively.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language