Re: [Algorithms] Complexity of new hardware
Brought to you by:
vexxed72
|
From: Jarkko L. <al...@gm...> - 2009-04-18 15:03:36
|
Yeah, there is some repeating of the variable names, but it's not that bad
really. All I have is something like:
struct foo
{ PFC_MONO(foo) {PFC_VAR3(x, y, z);}
int x, y, z;
};
And after that you can e.g. serialize or expose the class in editor:
foo f={1, 2, 3};
*open_file_write("hello.data")<<f;
I have used it for some time now and find it quite convenient.
Cheers, Jarkko
-----Original Message-----
From: Jon Watte [mailto:jw...@gm...]
Sent: Saturday, April 18, 2009 5:27 PM
To: Game Development Algorithms
Subject: Re: [Algorithms] Complexity of new hardware
Jarkko Lempiainen wrote:
> So far defining introspection straight in C++ has worked well for me, so
you
> don't have to generate nor parse anything and have full arsenal of C++
> features in your use.
>
Yes; the only thing that is annoying is the repeating-yourself problem.
I find I usually need to repeat myself one and a half time.
First, it's the declaration.
Then, it's the repeat of the declaration, in macro form.
Finally, it's some small bits of macro that builds the
helpers/visitors/registration needed to make it all "go."
Sincerely,
jw
----------------------------------------------------------------------------
--
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
GDAlgorithms-list mailing list
GDA...@li...
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list
|