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) { // warning
  sketch F() {} // error
} } K(1cm);

test

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

test

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

test

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

test

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

test

sketch K() { init(l:Length) { // warning
  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) {
  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); // error
} } K(1cm);