Hi all,
we'd like to announce our "DicThesaurusRex" project:
This dictionary and thesaurus extension allows Smalltalk developers to benefit from spelling
correction and synonym search within source code. It optionally extends code editors with a
spelling correction that underlines unknown terms and typos. These annotations can either
be corrected with suitable suggestions or always ignored in case of well-known abbreviations.
Moreover, the thesaurus integration provides helpful advice during searching and programming.
For example, the source code search has been extended to look also for similar terms and
synonyms. As a result, the search presents developers not only exact but also semantic matches.
For more information, please visit the following project page:
https://www.hpi.uni-potsdam.de/hirschfeld/trac/SqueakCommunityProjects/wiki…
DicThesaurusRex has been developed as part of our software engineering I course at the
Hasso-Plattner-Institute, University of Potsdam (summer term 2013).
We'd like to thank the following students:
* Daniel Neuschäfer-Rube
* Suhanyaa Nitkunanantharajah
* Jaqueline Pollak
* Jakob Reschke
Best regards,
Michael
---
Michael Perscheid
michaelperscheid(a)googlemail.com
http://www.michaelperscheid.de/
Hi Smalltalkers!
Here is a question I can't find answer with google.
In short: Does block parameters and block local variables are the same thing
(semantically) inside closure? It looks like it's not. Below the
explanation.
===================
Here is the accumulator function (first attempt):
makeAcc := [ :acc |
[:n | acc:=acc+n. acc]]
It turns out it doesn't work as intended:
a1 := makeAcc value: 10
a1 value: 1 => 11
a1 value: 1 => 11
a1 value: 2 => 12
====================
Here is the second attempt:
makeAcc := [ :acc |
| total |
total:=acc.
[:n | total:=total+n. total]]
And it does work as intended:
a1 := makeAcc value: 10
a1 value: 1 => 11
a1 value: 1 => 12
a1 value: 2 => 14
So if we use the local variable to store accumulator it works as it should
and remembers the value between function (block) calls. But if we use block
parameter to store the value of accumulator it does not remembers the value
between calls.
Why is it so?
P.S. Sorry for my English. I do all my best.
--
View this message in context: http://forum.world.st/Modify-block-closure-parameters-tp4702118.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.