Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Free vs Bound?

Name: noko 2011-09-24 15:44

How can you tell if a variable identifier is free or bound in a statement?

Foo = proc {$ List Count Length ?Res}


Do they have to be declared and called  to be bound? What about a function? If I set something like R = Foo{ blah blah blah blah} is R bound?

Name: Anonymous 2011-09-24 15:53

what is this I don't even

Name: Anonymous 2011-09-24 16:07

>>2
Variable scoping in declarative programming?

Name: Anonymous 2011-09-24 16:25

>>3
Yes you uneducated nigger.

Name: Anonymous 2011-09-24 16:55

Have you read your CTMCP today?
Simply speaking, when considering the code in a certain scope, an identifier is bound if it is declared within that scope.
If an identifier is used but not declared in the scope, it is free. To make a valid program, it must be declared in an outer scope.
It's not in general a terribly useful thing to think about, except in the context of closures.

Name: Anonymous 2011-09-24 17:19

>>5
Yeah that's the book I have. I can understand most of the examples in the book, but there aren't many, and the ones I have in my problem set are more complicated and I am getting lost.

Don't change these.
Name: Email:
Entire Thread Thread List