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

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02893] Re: Confused about '/o' in regexps

From: Dave Thomas <Dave@...>
Date: 2000-05-18 17:17:12 UTC
List: ruby-talk #2893
ts <decoux@moulon.inra.fr> writes:

> >>>>> "D" == Dave Thomas <Dave@thomases.com> writes:
> 
> D>   a = /ab#{c}d/;
> 
> D> should not evaluate the substitution immediately, but should instead
> D> wait until I use the regexp object 'a'. Instead I get 'undefined
> D> variable 'c''.
> 
>  Same than perl 

I get it now, the 'onceness' is associated with the node in the parse
tree, rather than with the regular expression itself. That's slightly
anomalous, but reasonable.

Nothing like having to document something to reveal how little you
know about it ;-)


Dave

In This Thread

Prev Next