- Start the client: mumps -dir
- Edit the file "hello": zed "hello"
- Write this code: say w "hello",! q
- Save: :wq
- Compile: zl
- Run the code: d say^hello
- Enjoy !
The code in an indented version
say w "hello",! qHere's the session:
#GTM] zed "hello" [ INSIDE YOUR $EDITOR ] [ you save the file ] [ and quits the editor ] #GTM] zl #GTM] d say^hello world #GTM]
Some explanations:
say ; Name of the label w "hello",! ; w[rite] the string "hello" followed by end of line: '!' q ; q[uit] return the control to the caller
You can use the fully qualified name for functions:
say ; Name of the label write "hello",! ; w[rite] the string "hello" followed by end of line: '!' quit ; q[uit] return the control to the caller
No comments:
Post a Comment