[its-hackers] Usefull Muddle 56 Hack?? PPRTDSK
lars at nocrew.org
Sat Mar 27 10:15:51 CET 2021
> <DEFINE PPRTDSK (PRTATM ;" PertyPrint to disk file. "
> "OPT" (DSKFIL <STRING <PNAME .PRTATM> " MUD">)
> "AUX" (OUTCHAN <OPEN "PRINT" .DSKFIL>))
> #DECL ((PRTATM VALUE) ATOM
> (DSKFIL) STRING (OUTCHAN) <OR CHANNEL FALSE> )
> <OR .OUTCHAN <ERROR "BAD FILE / CHANNEL" .OUTCHAN>>
> <PPRINT .PRTATM>
> <CLOSE .OUTCHAN>
Interesting. It seems to me much Muddle code uses "AUX" to introduce
local variables where Lisp would normally use LET.
Here's my novice attempt at Muddle programming. I see I should add
declarations for it to be more idiomatic.
More information about the its-hackers