This is an experiment to see what the differences are between defining NonNegativeInteger (NNI) as a SubDomain of Integer, versus defining it simply based on Integer itself. The surprizing conclusion is that the latter definition of
NNI produces nearly identical code as the first definition
except for the now required definitions of First, NNI the usual way: Axiom output parse error! Axiom output parse error! Now write NNI without using SubDomain: Axiom output parse error! The behaviour is identical to NNI Axiom output parse error! The generated lisp code for NNI is: Axiom output parse error! Compared NNI (-) to NNI2 (+): Axiom output parse error! SubDomain written in Aldor: Axiom output parse error! Axiom output parse error! Test the new subdomain. Axiom output parse error! Now define NNI the using the new SubSetDom?: For some unknown reason this fails: Axiom output parse error! But this works: Axiom output parse error! Axiom output parse error! test --Bill Page, Tue, 21 Aug 2007 15:59:41 -0500 reply Axiom output parse error!
Axiom output parse error! Axiom output parse error! |