Re: [frogs] Re: Named book file suffixes -- regtest?

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]




On 3/2/09 4:33 PM, "Marek Klein" <marek@xxxxxxxxxxxxx> wrote:

> 2009/3/2 Carl D. Sorensen <c_sorensen@xxxxxxx>
>> 
>> 
>> 
>> On 3/1/09 2:44 PM, "Marek Klein" <marek@xxxxxxxxxxxxx> wrote:
>> 
>>>> 
>>>> 
>>>> With your suggestion and one more line of code it works now with
>>>> ly:parser-define!
>>>> 
>>>> (define counter-alist '())
>> 
>> 
>> Will it work with the above line missing?  The whole point of using
>> ly:parser-define! is to avoid having a global variable.
>> 
>> When you use
>> 
>> (define counter-alist '())
>> 
>> you are defining counter-alist as a global variable.   I think you should be
>> able to just remove that line.
>> 
> Yes, it works. Thanks for explanation. Do you have some list of recomended
> studying materials?

I learned to program in Scheme more than 20 years ago in a month-long class
at MIT. The text was Structure and interpretation of Computer Programs,
which is available online at
<http://mitpress.mit.edu/sicp/full-text/book/book.html>

The book give quite a nice introduction to Scheme, with some useful simple
examples to get started with; you can run them all under guile.

The Guile documentation at gnu.org is also somewhat helpful.

 <http://www.gnu.org/software/guile/docs/docs.html>

There's a tutorial on this page that I've never tried; I had the SICP
material available in my background, so I just used that.

Hope this helps,

Carl



---

----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/