From: Nicholas Van Weerdenburg Date: 2004-08-05T22:02:48+09:00 Subject: Re: help from *nix ruby users Thanks. How would I normally determine if something is deprecated in ruby? After your email, I tried "ruby -w -e 'p PLATFORM'" but didn't see any warnings of deprecation (if that would be one way to check). Thanks, Nick nobu.nokada@softhome.net wrote: >Hi, > >At Thu, 5 Aug 2004 13:25:54 +0900, >Nicholas Van Weerdenburg wrote in [ruby-talk:108359]: > > >>Is there any difference between >> >>ruby -r rbconfig -e 'p Config::CONFIG["arch"]' >> >>and >> >>ruby -e 'p PLATFORM' >> >> > >Almostly equal. But they can be different while cross >compiling. > >Although many extension libraries (even ext/extmk.rb and >lib/mkmf.rb) uses RUBY_PLATFORM in their extconf.rb to determin >the target platform, I consider it shouldn't. > >Moreover, PLATFORM, VERSION and RELEASE_DATE have been >deprecated long ago, so never use them. > > >