DukContext.get

Get a value on the stack.

class DukContext
T
get
(
T
)
(
int idx = -1
)

Examples

1 auto ctx = new DukContext();
2 
3 ctx.push([1, 2, 3]);
4 
5 assert([1, 2, 3] == ctx.get!(int[]));

Meta