[colorforth] CF05 'copy'ies two blocks instead of one.
- Subject: [colorforth] CF05 'copy'ies two blocks instead of one.
- From: "Ray St. Marie" <ray.stmarie@xxxxxxxxx>
- Date: Sat, 27 May 2006 16:59:51 -0500
Hello all,
Ray here.
Reporting that the 2005 version of colorforth changes the word copy to
include the block used to document the code block, and moves that
documentation to the block one after the code block being copied.
copy ( n -- )
effect: copy the current block in the editor and the next one, stored
as the editor system variable blk and move to the blocks n and n+1,
leave the editor with the target block displayed.
This is new for colorforth. This makes colorforth into a two block
system. Work block seperated by the space to document that block.
The thing to be aware of is when you have code on a documentation
block. Why would you want to do this? It used to be convenient to
temporarily use the doc-block as a version of the current code. They
would be side by side. You could compare them. You still can,
obviously. You just use + and - and stay on even blocks and not use
the doc-block for code ever.
I often found it a convenience to use copy to double words that were
used many times. Take for example ' ; ' semi-colon. It is now
necassary to copy to blocks at the end of the currently coded blocks
to use this method. The convenience was that you could do this between
two empty doc-blocks nearer to your code.
Still, a simple versioning system could be made out of just using copy
the new way, and adding to the left hand keyboard the + and - keys
that would skip a range of blocks displayed in the editor evenly. Self
descriptive code plus time codes and version descriptions on the
doc-block would round out the set.
Happy coding!
Ray St. Marie
Remember:
When you want to copy a change to just the doc-block, you must * key
back out to the associated code block before copying. You must copy
both blocks together.
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com