Frame

This is an old revision of Frame, edited by Kai Burghardt at . The current revision is 141004.

/* available types */ remove accidental mention of `with` which works for a single statement only

A frame (frequently also referred to as block) is a language construct grouping a (possibly empty) sequence of statements (or instructions in the case of asm frames).

available types

All frames but repeat … until are terminated by the word end. Frame types are distinguished by their corresponding opening words.

style

Although not mandatory, it is customary to indent all code surrounded by frame markers by one level.

try
    openJar;
except
    throwATantrum;
end;

Some styles add another indentation level for nested or subordinate frame markers per se.

if apples = oranges then
  begin
    protest;
    halt(123);
  end;

technical background

Frames frequently, but not always, turn up to be (conditional) jmp targets. Some compile-time optimizations require code to be structured in a certain way, frames setting boundaries for that.