[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:03036] Keywords

From: "David Douthitt" <DDouthitt@...>
Date: 2000-05-30 13:57:10 UTC
List: ruby-talk #3036
> I have recently discovered that things that I thought
> were "reserved words" can actually serve as method names and the like.

> This shocked me. It doesn't really bother me, but it surprised me.

> For example, I used a method named "class" and it worked fine.

I actually did something like this - and seems to me it caused me grief.

I know I've run into lots of problems when I define a method "print" and =
then use

   print "foo"

WITHIN the new "print" method :-)  Time for lots of "Kernel.print" =
statements....

In This Thread

Prev Next