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


Groups > comp.lang.forth > #31213

Re: Compiler Tricks

From "Rod Pemberton" <dont_use_email@xnothavet.cqm>
Newsgroups comp.lang.forth
Subject Re: Compiler Tricks
Date 2014-06-05 15:36 -0400
Organization Aioe.org NNTP Server
Message-ID <op.xgzx2xky6zenlw@localhost> (permalink)
References <e83ffde9-78ab-49f9-bd0b-2b83137d6a51@googlegroups.com>

Show all headers | View raw


On Thu, 05 Jun 2014 14:00:14 -0400, Jason Damisch <jasondamisch@yahoo.com>  
wrote:

> I want to ask a question.  I want to have a word which compiles a string
> but instead of returning the address to the string, instead returns an
> XT which when executed returns the address of the string.
>
> I have SwiftForth.  So I used the handy dandy world LOCATE to rummage
> around in SwiftForth to see what it provides for me.
>
> [code]
>
> Which sure seems to do the trick.
>
> My question, is there a more portable way of doing this?
>

I'm not quite sure what your code does ...

Did Anton answer your question?

If not, are you asking for something closer to:

: STRINGIFY" :NONAME POSTPONE ." POSTPONE ; ;


Rod Pemberton

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


Thread

Compiler Tricks Jason Damisch <jasondamisch@yahoo.com> - 2014-06-05 11:00 -0700
  Re: Compiler Tricks anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-06-05 18:21 +0000
    Re: Compiler Tricks Jason Damisch <jasondamisch@yahoo.com> - 2014-06-05 13:43 -0700
    Re: Compiler Tricks Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-06-06 09:16 +0100
  Re: Compiler Tricks "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-06-05 15:36 -0400
    Re: Compiler Tricks Jason Damisch <jasondamisch@yahoo.com> - 2014-06-05 13:48 -0700
      Re: Compiler Tricks "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-06-05 17:30 -0400
        Re: Compiler Tricks Jason Damisch <jasondamisch@yahoo.com> - 2014-06-05 14:50 -0700
  Compiler Tricks Julian Fondren <ayrnieu@gmail.com> - 2014-06-05 13:50 -0700
    Re: Compiler Tricks Jason Damisch <jasondamisch@yahoo.com> - 2014-06-05 14:03 -0700
  Re: Compiler Tricks "Clyde W. Phillips Jr." <cwpjr02@gmail.com> - 2014-06-05 19:32 -0700

csiph-web