-
Content Count
133 -
Joined
-
Last visited
-
Days Won
3
BigEd781 last won the day on January 21 2012
BigEd781 had the most liked content!
Community Reputation
63 ✦About BigEd781

-
Rank
Advanced Member
- Birthday 11/10/1983
Profile Information
-
Gender
Male
RPG Maker Information
-
RM Skill -
Jack of All Trades
Recent Profile Visitors
4,174 profile views
-
Done.
-
Done
-
Ok. C# has the same "problem" though (no tail call recursion), so it's curious as to why you hit it so quickly in ruby. But yeah, recursion is rarely used in non-functional languages, and it is never actually required. There are of course problems that lend themselves to recursion like walking the nodes of a tree (i.e., directory traversal, etc.).
-
Just Just curious... why do you believe that a name generator requires the use of recursion? You can certainly use recursion in ruby, though there is no tail call optimization so you may well blow the stack if you call your function recursively too many times. I'm interested in what you meant by that statement.
-
Ruby/RGSS3 questions that don't deserve their own thread
BigEd781 replied to kal's topic in Programming
You say that you call the method like so: $class_name.whatever That would be incorrect. The name of the class is not the same as an instance of said class. Creating a class does not magically create a gobal variable along with it. You would need to create it first. $some_var ||= SomeClass.new #some_var.whatever -
Ruby/RGSS3 questions that don't deserve their own thread
BigEd781 replied to kal's topic in Programming
Because the UI doesn't have a chance to update. Windows works via a message queue. You can call draw() all you like, but if you're in a tight loop you never allow the message queue to process and you see only the last update. You are circumventing the basic game model of initialize_data(), update_data(), draw_screen(). -
Ruby/RGSS3 questions that don't deserve their own thread
BigEd781 replied to kal's topic in Programming
Interesting. Is RGSS3 moving to a zero-index standard? I haven't had a chance to browse the new scripts yet. RGSS3 is a library, it has nothing to do with ruby the language, which has always used zero-indexed arrays. If you look at the $data collections you will see that they are padded at the beginning as to allow more natural access to elements based upon their id in the database. -
Jet.... these scripts are great and all, but... get a life bud! Damn!
-
I need no introduction... .... But I made this topic anyway.
-
Welcome fellow programmer.
-
I think I remember you from my RRR days... welcome to the site.
-
Hello ROOTB... Franklin.


