From: Chris Morris Date: 2001-11-03T08:54:36+09:00 Subject: [ruby-talk:24237] RE: Too much eval evil? (tell me why I shouldn't do this) > That's all well and good if you know up front that you'll only have > three arrays to deals with, but if you don't.... My idea was to > create the cartesian product function dynamically and to an > instance_eval of it. I present the code below. Please let me know if > this is a crazy idea or not and also present alternatives: I've done something similar without doing any evals. It took a bit more than I thought up front, but I think it read better than your example. Right now, I'm typing one-handed here while feeding one of my baby boys, so this is all you get for the moment. ... maybe it'll spur you on to other ideas... Chris