method

new

new(*main)
public

Creates a new workspace.

set self to main if specified, otherwise inherit main from TOPLEVEL_BINDING.