Hi Raphael,

thank you very much for this extremely fast reply, which completely solved my problem!! :)

Cheers,

  Kilian


Am 04.05.2006 um 12:53 schrieb Raphael Collet:

Kilian Sprotte wrote:
Hi,
I am rather an Oz newbie and I am having a little problem with the Space hierarchy. I have written a function that returns some data (a list of FS constants...) to be used in a search script - I have implemented this function using a dictionary for memoization, because I was hoping to access the desired data inside the search script without being forced to precompute it explicitly beforehand. (Since outside the search script, I dont really know what my args to this function are...) I am getting an error that states I cannot do Dictionary.put from a local Space.

Indeed, computation spaces normally cannot have side effects. Basically if the arguments of your function are not chunks, you can store the dictionary outside the space, using the technique you mention:

[snip]



_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to