[retroforth] Re: factoring request

  • From: Stefan Schmiedl <s@xxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Tue, 26 Oct 2004 20:37:58 +0200

Charles Childers (2004-10-26 14:30):

> 
> >>What's so bad about hyphens? We already have a couple of words (zt-make 
> >>and zt-free) with hyphens.
> >>    
> >>
> >
> >are those words? :-) scnr
> >  
> >
> Yes.

btw: we were only making fun with creat and reate ...

> 
> >hyphens per se are not bad, but they often indicate opportuninty for
> >refactoring. A good name for the historical word CREATE would be
> >PARSE-CREATE since it does two things.
> >
> >The words for handling zero-terminated strings in SwiftForth start
> >with Z only, like ZPLACE or ZAPPEND ... 
> >
> What does SwiftForth call the words to turn a counted string into a zero 
> terminated one, and to free up the memory used?

hmmm... good question. In my Windows apps I usually start out
with zero terminated strings and then use zcount ( z -- a n ).
Re memory: SwiftForth usually uses dynamic allocation for
temporary string storage, so the usual FREE ( a -- ior ) suffices.

s.

> 
> 

-- 
Stefan Schmiedl
+-------------------------------+----------------------------------------+
|Approximity GmbH               | EDV-Beratung Schmiedl                  |
|http://www.approximity.com     | Am Bräuweiher 4, 93499 Zandt, Germany  |
|mailto:stefan@xxxxxxxxxxxxxxx  | Tel. (09944) 3068-98, Fax -97          |
+-------------------------------+----------------------------------------+

Other related posts: