Re: Complexity of new hardware

"Jarkko Lempiainen" <[email protected]>
Newsgroups gmane.games.devel.algorithms
Message-ID <3FF190D127C84B0990D364EBE0DCDE59@Tikru>
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:[email protected]] 
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.