Compiled? - Geomol/World GitHub Wiki

Usage

compiled? code

Description

Tells if a function or block is compiled.

compiled? is a function!

Arguments

code -- [function! block!]

Examples

w> code: [a: 1 b: 2  a + b]
== [a: 1 b: 2 a + b]
w> compiled? code
== false
w> compile code
== [a: 1 b: 2 a + b]
w> compiled? code
== true
w> append code [b + a]
== [a: 1 b: 2 a + b b + a]
w> compiled? code
== false
w> do code
== 3
w> compiled? code
== true