Do - Geomol/World GitHub Wiki

Usage

do word

Description

Evaluates a block, file, function, word, or any other value.

do is a function!

Arguments

word -- Normally a file name, URL, or block [any-type!]

Examples

w> do %example.w
Hello, World!
w> call "cat example.w"
.
== 0
w> do "."
Hello, World!
w> do [.]
Hello, World!
w> do .
Hello, World!
w> do a
** Script error: a has no value
** Near: do a

In this example a was not defined. The disk file example.w contains a single period character, and . (or dot) is the hello to World function.