Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #33996
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | "Rod Pemberton" <buzzoff@nonamewhichexists.cmm> |
| Newsgroups | comp.lang.forth |
| Subject | Re: VFX error? |
| Date | Fri, 17 Oct 2014 22:04:50 -0400 |
| Organization | Aioe.org NNTP Server |
| Lines | 29 |
| Message-ID | <op.xnwlecpfmk81un@localhost> (permalink) |
| References | <5b5849fc-0165-4eef-8ddb-833862c3adde@googlegroups.com> <2014Oct10.093331@mips.complang.tuwien.ac.at> |
| NNTP-Posting-Host | CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1; format=flowed; delsp=yes |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Opera Mail/12.16 (Linux) |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.forth:33996 |
Show key headers only | View raw
On Fri, 10 Oct 2014 03:33:31 -0400, Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote: > jzakiya@gmail.com writes: >> For some reason when I do this: >> >> hex >> >> create xxx 11 c, 34 c, FE c, .... CD c, .... >> >> the compiler throws an error. To get around it I can do this: >> >> create xxx 11 c, 34 c, FE c, .... 0CD c, .... >> >> but that's such a cludge hack. Why does this happen? > > As someone else explained, there is a word CD in VFX, and that > collides. Prepending a 0 to a hex number is traditional Forth > practice to avoid that problem, and used to be recommended for all hex > numbers, whether there is a known collision or not. These days you > can write $cd (no need to use HEX), and I recommend using that. The best solution is to require the system to not have any constants defined which could conflict. It should use some other syntax which has no potential for conflicts. E.g., con_CD or hex_CD etc. Rod Pemberton
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
VFX error? jzakiya@gmail.com - 2014-10-09 21:47 -0700
Re: VFX error? Michael Barry <barrym95838@yahoo.com> - 2014-10-09 22:08 -0700
Re: VFX error? Bruno Gauthier <bgauthier@free.fr> - 2014-10-10 07:17 +0200
Re: VFX error? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-10-10 07:33 +0000
Re: VFX error? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-10-10 10:10 +0000
Re: VFX error? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-10-10 10:39 +0000
Re: VFX error? "Rod Pemberton" <buzzoff@nonamewhichexists.cmm> - 2014-10-17 22:04 -0400
Re: VFX error? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-10-10 03:06 -0500
Re: VFX error? francois.ganza@wanadoo.fr - 2014-10-10 01:47 -0700
Re: VFX error? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-10-10 10:36 +0000
Re: VFX error? stephenXXX@mpeforth.com (Stephen Pelc) - 2014-10-10 13:34 +0000
Re: VFX error? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-10-10 15:09 +0000
Re: VFX error? stephenXXX@mpeforth.com (Stephen Pelc) - 2014-10-10 13:26 +0000
Re: VFX error? jzakiya@gmail.com - 2014-10-10 12:41 -0700
Re: VFX error? "Rod Pemberton" <buzzoff@nonamewhichexists.cmm> - 2014-10-17 22:09 -0400
Re: VFX error? Just Ian <superian@gmail.com> - 2014-10-22 08:25 -0700
Re: VFX error? Coos Haak <chforth@hccnet.nl> - 2014-10-22 21:14 +0200
Re: VFX error? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-10-22 20:40 +0000
Re: VFX error? hughaguilar96@yahoo.com - 2014-10-22 20:14 -0700
Re: VFX error? francois.ganza@wanadoo.fr - 2014-10-11 15:31 -0700
Re: VFX error? Julian Fondren <julian.fondren@gmail.com> - 2014-10-11 21:04 -0700
csiph-web