Simple Question

You have problems, and we're glad to hear them. Explain the problem, what you have tried, and where you got stuck.
Feel free to share a little info on yourself and the course.
Forum rules
Please respect your teacher's guidelines. Homework is a learning tool. If we just post answers, we aren't actually helping. When you post questions, be sure to show what you have tried or what you don't understand.

Simple Question

Postby g0blu324 » Mon May 14, 2012 1:23 pm

How do you modify/edit a function that's been created? (This is the start of 2nd week of learning the language)
Posts: 6
Joined: Sat May 12, 2012 2:16 pm

Re: Simple Question

Postby sylwester » Thu Jul 19, 2012 4:57 pm

In most lisps you can just feed the interactive session the altered definition code and the function will get redefined.
If it was not top level (you defined it inside a function) you'll need to redefine the whole top level function with the changed function in it.

Depending on what language and IDE you're using but DrRacket is a Scheme IDE where you can do your deiinitions in a file and when you change the file you can just hit run to make all your changes in effect. It has a pretty good debugger as well which also is usefull to understand code you haven't written yourself or to find bugs :)
I'm the author of two useless languages that uses BF as target machine.
Currently I'm planning a Scheme compiler :p
Posts: 130
Joined: Mon Jul 11, 2011 2:53 pm

Return to Homework

Who is online

Users browsing this forum: No registered users and 1 guest