Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!CIM-VAX.HONEYWELL.COM!dscargo From: dscargo@CIM-VAX.HONEYWELL.COM ("DAVE CARGO") Newsgroups: comp.lang.icon Subject: cset comparisons Message-ID: <8909121409.AA06843@megaron.arizona.edu> Date: 12 Sep 89 14:29:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 16 I found myself doing some cset manipulations for a program and then realized that I couldn't remember what kinds of comparison operators work for csets. So I tried looking in the Icon book. Nothing seemed to be clearly indicated. At a guess csets are converted to strings for comparisons. Is that the way it works? Is it unavoidable? I wanted to see if the intersection of two csets was empty or not, e. g., if a ** b == '' then ... but then I realized that I wasn't sure if == was the right operator. (Not that I think that every type needs its own equality operator.) Can someone provide some guidance (what to use and why Icon wants it that way)? David S. Cargo DSCARGO@CIM-VAX.HONEYWELL.COM