RetroForum Welcome, Guest. Please login or register.
September 09, 2010, 11:06:55 PM
Home Help Search Calendar Login Register

RetroForth Discussion  |  Older Boards  |  Development  |  Topic: Odd Windows version « previous next »
Pages: 1 Go Down Print
Author Topic: Odd Windows version  (Read 1609 times)
Josef Gabriel
Jr. Member
***

Karma: +0/-0
Offline Offline

Posts: 23

I'm a llama!


View Profile
Odd Windows version
« on: October 08, 2005, 01:29:09 AM »

Hi all,

      I was just wondering why the windows RF nightly build does not have ">" or "<"? Is there a reason for this? What minimalist trick am I missing that does not require ">" or "<" ?

Thanks,

Josef
Logged
Charles Childers
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 745


View Profile WWW
Re: Odd Windows version
« Reply #1 on: October 08, 2005, 01:56:00 AM »

< > are provided in the nightly build, but is not used for conditionals. It's a string construct used to define a sequence of code you want to run in the interpreter when the word that uses them is called.

Code:
| Example
|
| When "setup" is called, it'll create a constant
| named "myconstant" with a value of 100

: setup < 100 constant myconstant > ;

This is used in a few places in the bootstrap code, mainly the editor and "exit" for dealing with custom applications that hook into "ui"
Logged
Josef Gabriel
Jr. Member
***

Karma: +0/-0
Offline Offline

Posts: 23

I'm a llama!


View Profile
Re: Odd Windows version
« Reply #2 on: October 08, 2005, 08:51:44 PM »

Charles,

     Since the common usage of > and < are used with if, like >if, <if, and =if, there really is not a need for > and <. To find the max or min, could just use the definitions in the ans library. Correct?

Josef

Logged
Pages: 1 Go Up Print 
RetroForth Discussion  |  Older Boards  |  Development  |  Topic: Odd Windows version « previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Valid XHTML 1.0! Valid CSS!