Archive for November 3rd, 2007

John Conway in Youtube

November 3, 2007

Here’s a documentary segment with John Conway talking about The Game of Life:

This segment is from a documentary called: What we still don’t know.

The whole episode where the John Conway segment came from is in google video.

I also found an excellent Make magazine video about a kit that allows you to make a Game of Life board with LEDs and a PIC controller. You can also buy more of them and join them:

Getting address of variable in class

November 3, 2007

Today I tried to find out what was the problem with a CA program I was writing in c++ after the compiler gave me the following message: caArray is undefined. I was trying to pass the address of an entry in the caArray as a return value for a function. Other classes that modified the caArray didn’t give the error so I wasn’t sure what was happening. After some time I checked the definition and it was written just like the equivalent c definition but with the class name in front:

int <class name>::*<function name> 

But it should be defined like:

int *<class name>::<function name>

I know this seems like a stupid mistake for a c++ programmer but it might be a problem for someone starting with c++ from c, especially with the fact that the error message doesn’t say the definition is wrong.