The loop/break program does not perform identically under Icon and Unicon:
under Unicon, the default random "?" produces a different sequence without
initialization while the Icon version prduces an identical sequence.
I suspect we are going to have this kind of problem with a number of
Unicon functions where enhancements may or may not be evident in the
code. As the examples improve, we may want to demo more clearly the
enhancements.
So...please, either comment the code and/or put it back under Unicon.
As an old natural language student, I developed a servere dislike of
looking up a word and being directed to a different part of the
dictionary. So while I appreciate the motivation for the Icon/Unicon
cross-references, I don't like them.
--Phillip
On Sun, 4 Apr 2010, David Gamey wrote:
> Folks,
>
> I just had a very quick go over the Icon and Unicon examples on Rosetta Code.
> This pass was mainly to get some consistency.
>
> One task was to eliminate duplication by using back references from Unicon to
> Icon where the code works in both. The following markup is used.
>
> =={{header|Unicon}}==
> See [[#Icon|Icon]].
>
> The following were Icon programs but listed as Unicon only. They are now
> Icon with references from Unicon to Icon.
>
> * http://rosettacode.org/wiki/Ackermann_function
> * http://rosettacode.org/wiki/Comments
> * http://rosettacode.org/wiki/Loops/Break
> * http://rosettacode.org/wiki/Hello_world/TextUnicon entries were added
> back referencing to Icon for the following:
>
> * http://rosettacode.org/wiki/Associative_arrays/Creation
> * http://rosettacode.org/wiki/Apply_a_callback_to_an_array
> * http://rosettacode.org/wiki/Evolutionary_algorithm
> * http://rosettacode.org/wiki/Generic_swap
> * http://rosettacode.org/wiki/Greatest_element_of_a_list
> * http://rosettacode.org/wiki/Higher-order_functions
> * http://rosettacode.org/wiki/Hostname
> * http://rosettacode.org/wiki/Input_loop
> * http://rosettacode.org/wiki/Loops/Infinite
> * http://rosettacode.org/wiki/Loops/While
> * http://rosettacode.org/wiki/Roots_of_unity
> * http://rosettacode.org/wiki/Sieve_of_Eratosthenes
> * http://rosettacode.org/wiki/Sorting_algorithms/Bogosort
> * http://rosettacode.org/wiki/Sorting_algorithms/Permutation_sort
> * http://rosettacode.org/wiki/Sum_of_a_series
> * http://rosettacode.org/wiki/Sum_of_squares
> * http://rosettacode.org/wiki/Synchronous_concurrency
> * http://rosettacode.org/wiki/Variadic_functionDavid
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group