Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #27813

Re: late binding

From Ron Aaron <rambamist@gmail.com>
Newsgroups comp.lang.forth
Subject Re: late binding
Date 2014-01-11 17:58 +0200
Organization A noiseless patient Spider
Message-ID <larpmk$4j7$1@dont-email.me> (permalink)
References <7xr48eg7q1.fsf@ruckus.brouhaha.com>

Show all headers | View raw



On 01/11/2014 11:59 AM, Paul Rubin wrote:
> In this era of avant-garde Forth innovation such as Chuck using circular
> stacks and having IF not pop the condition from the stack, I wonder if
> anyone has experimented with late binding. 

Yes, "8th" has late-binding, but only on-demand, using the word "`" (the
backtick).

The reason is that, say "+" may apply to a Number or a String (among
other things), and you may for example have an Array of one or the other
type.  So if you have a case where you don't know the type of item until
runtime, you can use the late-binding word.

Of course, that is going to be slower than interpret-time binding, but
if you need it, it is very handy to have.

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

late binding Paul Rubin <no.email@nospam.invalid> - 2014-01-11 01:59 -0800
  Re: late binding Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-01-11 04:16 -0600
    Re: late binding Paul Rubin <no.email@nospam.invalid> - 2014-01-11 03:06 -0800
      Re: late binding anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-01-13 15:31 +0000
  Re: late binding albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-01-11 14:05 +0000
  Re: late binding Ron Aaron <rambamist@gmail.com> - 2014-01-11 17:58 +0200
  Re: late binding "Elizabeth D. Rather" <erather@forth.com> - 2014-01-11 08:55 -1000
    Re: late binding Paul Rubin <no.email@nospam.invalid> - 2014-01-11 11:23 -0800
      Re: late binding "Elizabeth D. Rather" <erather@forth.com> - 2014-01-11 10:37 -1000
  Re: late binding Michael L Gassanenko <m_l_g3@yahoo.com> - 2014-01-13 00:01 -0800
    Re: late binding m.a.m.hendrix@tue.nl - 2014-01-13 04:18 -0800
  Re: late binding Mark Wills <markrobertwills@yahoo.co.uk> - 2014-01-13 00:51 -0800
  Re: late binding Matthias Koch <matthias.koch@hot.uni-hannover.de> - 2014-01-13 14:40 +0100
  Re: late binding anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-01-13 14:41 +0000

csiph-web