From: ts Date: 2007-12-30T02:46:26+09:00 Subject: Re: Layout of includes in ruby 1.9 >>>>> "G" == =?ISO-8859-1?Q?Gonzalo Garramu=F1o?= writes: G> What was really the purpose of this change? I'm trying to figure out G> what benefit a developer gets out of this compared to just being able to G> have a simple #define that tells the version number. This will be worst because you need to know for each version what possibilities you have. To give you an example, one of my extension define an object which is like a String object (it try to implement the same methods) : I don't need to know when was introduced methods like #lstrip, #match, ... if I want that my object respond to these methods. In extconf.rb, I just test if a String Object respond to one of these methods, and if yes the method is defined (via #ifdef) And if one of these methods will be removed in the future, my extension will still work and respond like a String object Guy Decoux