From: Xavier Noria Date: 2013-04-24T15:10:56+09:00 Subject: Re: what is the $- magic global? --e89a8ff1bfa67f74d604db150dde Content-Type: text/plain; charset=UTF-8 On Wed, Apr 24, 2013 at 7:51 AM, Nobuyoshi Nakada wrote: Xavier Noria wrote in post #1106724: > > I believed ordinary variables had to be valid identifiers. > > Yes, it was a valid identifier, till now. I mean, I believed that ordinary variables (the ones a user can define, different from special-cased globals), had to have a valid identifier following the dollar sign. I don't know, you can't assign to $| for example. Or is that $- was special-cased by the parser as a side-effect, but still had no special meaning so it was at the disposal of the user? --e89a8ff1bfa67f74d604db150dde Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Wed, Apr 24, 2013 at 7:51 AM, Nobuyoshi Nakada <lis= ts@ruby-forum.com> wrote:

=
Xavier Noria wrote in post #1106724:
> I believed ordinary variables had to be valid identifiers.

Yes, it was a valid identifier, till now.

=
I mean, I believed that ordinary variables (the ones a user can define= , different from special-cased globals), had to have a valid identifier fol= lowing the dollar sign. I don't know, you can't assign to $| for ex= ample.

Or is that $- was special-cased by the parser as a side= -effect, but still had no special meaning so it was at the disposal of the = user?

--e89a8ff1bfa67f74d604db150dde--