From: ptkwt@... (Phil Tomson) Date: 2006-03-01T10:58:55+09:00 Subject: Re: :-( In article <20060228014338.GA22949@anthropohedron.net>, Gregory Seidman wrote: >On Tue, Feb 28, 2006 at 10:12:22AM +0900, Joe Van Dyk wrote: >} Someone needs to make a "C++ for Ruby programmers" book. I'm getting >} assigned to work on a C++ project now and it's making me cry. Not >} only have I forgotten all of the C++ that I used to know, I actually >} have to compile stuff! >} >} I guess I should get more experienced in C++, as variety is good. But >} it's still painful. > >Think of the compiler as the interpreter, and templates as duck-typed Ruby. >Do as much as you can with meta-programming, since it should be comfortable >from a Ruby background. The rest... the rest is just syntax. Lots and lots of syntax.... Just a crazy idea: we've got SWIG that lets us access our C++ objects in Ruby, how about something that goes the other way so that Ruby class definitions get translated to C++ code? Phil