Category : Files from Magazines
Archive   : DBMS9104.ZIP
Filename : LIEF1.APR

 
Output of file : LIEF1.APR contained in archive : DBMS9104.ZIP


Listing 1:
Caption: Some example code blocks that do not use parameters.

local myblock := { | | qout(mvar) }, mvar := "testing"
eval(myblock) // output: "testing"

local myblock := {|| 5000 }
x := eval(myblock)
? x // output: 5000

local myblock := { | | x++ }
for y := 1 to 100
eval(myblock) // crashes because X not defined
next
? x

local myblock := { | | x++ }, x := 1 // much nicer thanks
for y := 1 to 100
eval(myblock)
next
? x // output: 101

local myblock := { | | BlueFunc() }
eval(myblock) // calls BlueFunc() which displays a message
return nil

static function bluefunc
? "here we are in a BlueFunc() - will we ever escape?"
inkey(5)
return nil



  3 Responses to “Category : Files from Magazines
Archive   : DBMS9104.ZIP
Filename : LIEF1.APR

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/