Talk:Integer comparison: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 4: Line 4:


Does the Perl example output the relation between the two numbers? I don't know Perl, but it doesn't look like it prints anything. --[[User:Mwn3d|Mwn3d]] 07:26, 25 April 2008 (MDT)
Does the Perl example output the relation between the two numbers? I don't know Perl, but it doesn't look like it prints anything. --[[User:Mwn3d|Mwn3d]] 07:26, 25 April 2008 (MDT)
: An old comment, I know. But yes, the Perl function needs to be wrapped in code to get user input and display the result. Fixed. --[[User:Snoman|Snoman]] 11:06, 12 July 2010 (UTC)

Revision as of 11:06, 12 July 2010

The Pop11 and Standard ML examples don't implement the task properly. Please note that the task explicitly contains "Test the condition for each case separately, so that all three comparison operators are used in the code." As is, those examples don't use the equality comparison operator. That is, they don't demonstrate how to compare for equality directly (in case those languages indeed only allow to test for integer equality by testing that one is neither larger nor smaller than the other — which I strongly doubt — it should be explicitly stated). --Ce 13:21, 11 May 2007 (EDT)

Perl

Does the Perl example output the relation between the two numbers? I don't know Perl, but it doesn't look like it prints anything. --Mwn3d 07:26, 25 April 2008 (MDT)

An old comment, I know. But yes, the Perl function needs to be wrapped in code to get user input and display the result. Fixed. --Snoman 11:06, 12 July 2010 (UTC)