D
Daniel Schoch
Hi,
I just started with ruby and I understand from reading the documentation
that pointers don't exist. I'm in the process of writing a netlister.
Such a software is usually built using several linked lists. More
precisely, each element of one list contains a pointer to an element of
some other list.
So I was wondering how this can be achieved.
And while I'm at it I also have the following questions which I didn't
find an answer for in the litarature.
1.
@names.each do |name|
I understand what the line is doing, but why is |name| in the pipe?
What's the definiton of |xx| ?
2.
I came across this in an example piece of ruby code:
options[:verbose] = x
I thought this is a hash with key verbose. But Im not sure now, why is
this :verbose and not options["verbose"]?
Thank you for all the help.
I just started with ruby and I understand from reading the documentation
that pointers don't exist. I'm in the process of writing a netlister.
Such a software is usually built using several linked lists. More
precisely, each element of one list contains a pointer to an element of
some other list.
So I was wondering how this can be achieved.
And while I'm at it I also have the following questions which I didn't
find an answer for in the litarature.
1.
@names.each do |name|
I understand what the line is doing, but why is |name| in the pipe?
What's the definiton of |xx| ?
2.
I came across this in an example piece of ruby code:
options[:verbose] = x
I thought this is a hash with key verbose. But Im not sure now, why is
this :verbose and not options["verbose"]?
Thank you for all the help.