Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Init

test

sketch K() { init(l:Length) {
  sketch F() {} // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  mod m {} // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  fn f() {} // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  init() {} // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  use std;
} } K(1cm);

test

sketch K() { init(l:Length) {
  pub use std; // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  return l; // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  if std::math::PI == l { } // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  const B = l; // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  pub a = l; // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  a = l;
} } K(1cm);

test

sketch K() { init(l:Length) {
  prop a = l; // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  l + 2; // error
} } K(1cm);

test

sketch K() { init(l:Length) {
  __builtin::geo2d::Circle(radius=l);
} } K(1cm);