[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-core
Subject:    Re: Where to start
From:       Vimal <j.vimal () gmail ! com>
Date:       2006-12-30 6:23:03
Message-ID: ff71fbf20612292223v764e6c4bi123e1c54f28c9892 () mail ! gmail ! com
[Download RAW message or body]

Hi
I had trouble initially finding out what VALUE was ... but check out
ruby.h(using grep)...
>> typedef unsigned long VALUE;
So, I guess VALUE could just be a pointer :) since many functions seem to
accept args as VALUE a, VALUE b
And then try to make sense out of it, by typecasting the value at that
address to the appropriate data structure , which is also defined in ruby.h
HTH

Vimal

On 12/29/06, Strong Cypher <cypherstrong@gmail.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi, I want to look at ruby-core code, I see some function like VALUE ...
> Does exist a doc to understand how ruby is coded ? and how can I add
> properly my code ?
>
> I don't really know where to start ... so
> help should be great :)
>
> well
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32) - WinPT 1.0.1
>
> iD8DBQFFlRZFEg3iyspSWPARAsN+AJwMP5f+Fmi1xL+C0Ok+6DOhS7Gh4ACfTVvq
> z6ldllVXk/MYBxBlniPh6qs=
> =n4kr
> -----END PGP SIGNATURE-----
>
>

[Attachment #3 (text/html)]

Hi<br>I had trouble initially finding out what VALUE was ... but check out ruby.h \
(using grep)...<br>&gt;&gt; typedef unsigned long VALUE;<br>So, I guess VALUE could \
just be a pointer :) since many functions seem to accept args as VALUE a, VALUE b \
<br>And then try to make sense out of it, by typecasting the value at that address to \
the appropriate data structure , which is also defined in \
ruby.h<br>HTH<br><br>Vimal<br><br><div><span class="gmail_quote">On 12/29/06,  <b \
class="gmail_sendername">Strong Cypher</b> &lt;<a \
href="mailto:cypherstrong@gmail.com">cypherstrong@gmail.com</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
                204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Hi, I want to look at \
ruby-core code, I see some function like VALUE ...<br>Does exist a doc to understand \
how ruby is coded ? and how can I add properly my code ?<br>

<br>I don&#39;t really know where to start ... so<br>help should be great \
:)<br><br>well<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.6 (MingW32) - \
WinPT 1.0.1<br><br>iD8DBQFFlRZFEg3iyspSWPARAsN+AJwMP5f+Fmi1xL+C0Ok+6DOhS7Gh4ACfTVvq \
<br>z6ldllVXk/MYBxBlniPh6qs=<br>=n4kr<br>-----END PGP SIGNATURE-----<br><br>

</blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic