Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!sunic!liuida!prodix!isadora!hacker From: hacker@isadora.ikp.liu.se (Goran Larsson [Hacker of Hackefors]) Newsgroups: comp.lang.forth Subject: Re: ANS TC Magnet for Interpreter Message-ID: <548@isadora.ikp.liu.se> Date: 19 Jan 90 19:08:50 GMT References: <9001172005.AA21025@jade.berkeley.edu> Sender: news@prodix.liu.se Reply-To: hacker@isadora.sypro.se Organization: Hackers Home, Hackefors, Linkoping, Sweden Lines: 26 In article <9001172005.AA21025@jade.berkeley.edu> Forth Interest Group International List writes: >> ... discussion about various ways to specify explicit number base ... >> MB: H# D# >> RB: %, etc >> FS: $, h', etc >RB notes the difficulty with "D#" also being a plausible operator for >entry of double numbers. Whatever scheme is chosen should treat the >"double/single" and "hex/decimal" choices orthogonally, since the >choices are independent of one another. In my own forth system designed five years ago I used the base#number syntax. Normal numbers: 16#7F 8#33 10#100 2#10010110 30#HIGH Double numbers: 16#FFFFFFFF. 10#100000. The number representing the base is always interpreted as a decimal number. The whole thing was implemented inside NUMBER. ! _ ! ! Goran Larsson [The Hacker of Hackefors] --+-+ Hackefors, Linkoping, SWEDEN (See) +46 13-155535 (Hear) +-+-- ...!uunet!sunic!unilog!isadora!hacker (Bang!) ! ! hacker@isadora.sypro.se (at'n'dots) ! Mmh, Yes