programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

SwiftForth's default CATCH/THROW behavior WAS Re: File to memory and memory to file allot + mem to swiftforth

From: Richard Owlett <rowlett_at_atlascomm.net>
Date: Mon, 03 Dec 2001 15:18:13 -0600

Mike Ghan wrote:
>
> An example of file access and memory allocation:
>
> \ Use S" filename.ext" FILE>MEM
> : FILE>MEM ( filename count -- memAddr filesize )
> R/O OPEN-FILE THROW >R
> R@ FILE-SIZE THROW D>S ( size )
> DUP ALLOCATE THROW ( Allocate a Memory Block )
><SNIP>

Looking at this and Section 4.7 of _Users' Manual_ seems to indicate I
would not have to write my own CATCH routine for the above code to work.
I don't have any doubt about when operating in the terminal window.

What happens in a turnkey application, explicitly one built around
GENERICWINDOW and relatives?
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/sftalk -- check them out!
Search the archives! Visit http://www.forth.com/search for details.
Received on Mon Dec 03 2001 - 13:20:55 PST

This archive was generated by hypermail 2.2.0 : Fri Nov 21 2008 - 03:04:20 PST