Clemens Fruhwirth clemens@endorphin.org wrote:
The attached test case does produce strange results for accepting-values calls.
After a fair amount of source reading: Not a bug.
Paolo, thanks for adding it to http://mcclim.cliki.net/Bug. I removed it.
The follownig code is not a valid test case. See below.
(accepting-values (input-stream) (accept 'string :prompt "A string" :stream input-stream ) (terpri input-stream) (accept 'integer :prompt "An integer" :stream input-stream ) (terpri input-stream) (accept 'integer :prompt "An integer" :stream input-stream ))))
From the CLIM spec, 6th paragraph in the description of accepting-values
in Chapter 26:
"Inside of accepting-values, programmers should supply the :query-identifier argument to each call to accept. If :query-identifier is not explicitly supplied, the prompt for that call to accept is used as the query identifier. Thus, if :query-identifier is not supplied, programmers must ensure that all of the prompts are different. If there is more than one call to accept with the same query identifier, the behavior of accepting-values is unspecified."