[ruby-talk:02419] Re: String expansion of class variables

From: matz@... (Yukihiro Matsumoto)
Date: 2000-04-10 05:44:56 UTC
List: ruby-talk #2419
Hi,

In message "[ruby-talk:02417] String expansion of class variables"
    on 00/04/09, Dave Thomas <Dave@thomases.com> writes:

|You can expand global and instance variables in strings without the
|braces:
|
| "instance #@inst, global #$global"
|
|However, you cannot expand class variables:
|
|  "class #@@cls"
|
|==>
|
|  -:1: compile error in string expansion (SyntaxError)
|
|The attached patch seems fairly benign.

Thank you.  I applied this patch and committed 2000-04-10.

							matz.

In This Thread

Prev Next