From: Nathaniel Trellice Date: 2007-01-11T22:23:24+09:00 Subject: Re: Sharing constants between C and Ruby code Thanks for the ideas. What I was thinking of doing was writing a Ruby class (in C) which has the constants as class constants. This way, compiling the class will pull in the #defines from the C header file, and they'll be available within Ruby from my class. But, being new to ruby, I was hoping to avoid having to figure out how to write a Ruby class in C at this stage of my ruby development! Thanks again Nat -- Posted via http://www.ruby-forum.com/.