Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!umd5!hans
From: hans@umd5.umd.edu (Hans Breitenlohner)
Newsgroups: comp.lang.apl
Subject: Re: encode question
Message-ID: <2923@umd5.umd.edu>
Date: 16 Jul 88 00:27:40 GMT
References: <6238@umn-cs.cs.umn.edu::
Reply-To: hans@umd5 (Hans Breitenlohner)
Organization: University of Maryland, College Park
Lines: 28

In article <6238@umn-cs.cs.umn.edu:: amit@umn-cs.UUCP (Neta Amit) writes:
::Do you know a trick (or an implementation) that will make
::
::     1 1 1 1 encode 2
::
::return
::    
::     0 0 1 1   ?
::
::Granted, the answer is ambiguous, as 0 1 0 1 etc. would qualify just as
::well, but nonethteless 0 0 1 1 is the "obvious" answer, derived from a
::unary representation.
::
::I's quite surprised to find out that all 4 of the implementations I have
::access to returned   0 0 0 0 .  What gives?
::
::
::
::
::-- 
::  Neta Amit 
::  U of Minnesota CSci
::  Arpanet: amit@umn-cs.cs.umn.edu


all four implementations you checked are conforming to the ISO standard
for APL (actually I checked the fifth working draft standard, dated
June 30, 1983).  The behavior you expect would be in conflict with
that standard.