From: Dave Thomas Date: 2004-02-27T22:56:34+09:00 Subject: Re: $- variables On Feb 27, 2004, at 2:56, Yukihiro Matsumoto wrote: > $- variable correspond with - option to the interpreter. > If the interpreter has correspond command line option, the variable > has its value, otherwise nil. Matz: The reason I ask is that older interpreters used to allow $- as a valid variable. The new ones don't, but at the same time there's the following comment in yylex: case '-': tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yylval.id = rb_intern(tok()); /* xxx shouldn't check if valid option variable */ return tGVAR; And it seems to allow constructs such as :$-@ Cheers Dave