Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #26469 > unrolled thread
| Started by | Coos Haak <chforth@hccnet.nl> |
|---|---|
| First post | 2013-10-13 14:37 +0200 |
| Last post | 2013-10-13 06:14 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.forth
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: gforth assertions turned off Coos Haak <chforth@hccnet.nl> - 2013-10-13 14:37 +0200
Re: gforth assertions turned off Paul Rubin <no.email@nospam.invalid> - 2013-10-13 06:14 -0700
| From | Coos Haak <chforth@hccnet.nl> |
|---|---|
| Date | 2013-10-13 14:37 +0200 |
| Subject | Re: gforth assertions turned off |
| Message-ID | <vkuul7n5mk8g.r896nh1x7c45$.dlg@40tude.net> |
Op Sat, 12 Oct 2013 18:53:49 -0700 schreef Paul Rubin: > I seem to have done something that has stopped gforth assertions from > working: > > $ gforth > Gforth 0.7.0, Copyright (C) 1995-2008 Free Software Foundation, Inc. ... > assert-level @ . 1 ok > assert( false ) .s <1> 0 ok > > The assert false should throw an exception but doesn't. I'm sure assert( > used to work. I've probably forgotten something or done something dumb, > but looking at the manual and scratching my head isn't helping. > Any advice? Thanks. You might try it in a colon definition ;-) -- Coos CHForth, 16 bit DOS applications http://home.hccnet.nl/j.j.haak/forth.html
[toc] | [next] | [standalone]
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Date | 2013-10-13 06:14 -0700 |
| Message-ID | <7xvc11b9dx.fsf@ruckus.brouhaha.com> |
| In reply to | #26469 |
Coos Haak <chforth@hccnet.nl> writes: >> The assert false should throw an exception but doesn't. > You might try it in a colon definition ;-) Yeah, it wasn't working in the colon definition I'd originally written it in, because another assert(...) I had someplace else in the program had an accidental wrong stack effect inside the assert, and that apparently confused all the asserts. I got it working and tried to cancel the post, but I guess it got out.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.forth
csiph-web