We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Undefined behavior (language)

From Esolang
Jump to navigation Jump to search

Undefined behavior is a language where

Known UB programs

Hello, World!

   A STATEMENT
   IN SOME WAY, SET THE REGISTER 1 TO THE VALUE // sets reg 1 to a vague value
   SET REGISTER 1 TO THY ZERO
   ASSIGN TO REGISTER_MULTI 1 TO LENGTH_OF STRING Hello, World! /STRING /LENGTH_OF /REGISTER_MULTI THE VALUE STRING Hello, World! /STRING // works
   PRINT REGISTER_MULTI 1 TO LENGTH_OF STRING Hello, World! /STRING /LENGTH_OF /REGISTER_MULTI

Implementations

By definition,