On 31 =CC=DC=FA=EF=F2, 17:26, Josh Cheek <josh.ch... / gmail.com> wrote:
> [Note: =A0parts of this message were removed to make it a legal post.]
>
> On Tue, May 31, 2011 at 8:05 AM, Ilias Lazaridis <il... / lazaridis.com>wro=
te:
>
>
>
>
>
> > ruby 1.9
>
> > (this is about the *abilities* or the ruby 1.9 language)
>
> > class Persnon
> > =A0attrib name =A0String opt1 opt2
> > =A0attrib age Integer
> > end
>
> > The main questions:
> > a) Can such an "attrib" method be implemented with ruby code?
> > b) Can such an "attrib" functionality be implemented on the C-level
> > (as extension, not as modification of source)?
>
> > Any examples?
>
> > Please notice the requirements:
>
> > 1) "name" and not ":name"
> > 2) no comma between "name" and "String" and "opt1" ...
>
> Almost certain this can't be done.

ok

> You could do something somewhat close to that, as seen in the below examp=
le.
[...]

this is far to complex expressed.

Can you simplify this, e.g. avoiding usage of "rspec"?

.

--
http://lazaridis.com