Ruby classes can be declared like 'class Foo::Bar'.
Currently this gives a class name of 'Foo'. This patch
allows colons to be included in class and module names.
Logged In: YES
i think the submitter is only half correct. this example:
gives this error:
./x.rb:2: uninitialized constant Foo (NameError)
and using a single ":" gives this error:
./x.rb:2: syntax error, unexpected ':', expecting '<' or '\n' or ';'
you can use :: as a C++-like scope resolution operator, including in definitions:
but the tag there isn't Foo::Bar, it's Bar in the scope of Foo. accepting ":" as part of an identifier would be wrong. we need to be more intelligent when parsing definitions and correctly enter/exit the enforced scope instead.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.