On 4 Ϧ, 16:41, Peter Zotov <whitequ... / whitequark.org> wrote:
> On Sat, 4 Jun 2011 20:45:30 +0900, Ilias Lazaridis wrote:
>
> > Can someone please confirm?
> > I understand that such a construct could be implemented as a C-level
> > extension (without alteration of the main sources).
>
> No it couldn't. The feature you want requires altering of the Ruby
> parser
> behavior. No amount of C-level extensions to MRI would help you.

I understand.

a) The feature requires alteration of the parser
b) The parser cannot be altered with a C-level extension

Thus:

The Specialized Attribute Definition can be achieved only by a source-
level modification.

.

--
http://lazaridis.com