Skip to content

Instantly share code, notes, and snippets.

@valexey
Created October 24, 2013 15:27
Show Gist options
  • Save valexey/7139263 to your computer and use it in GitHub Desktop.
Save valexey/7139263 to your computer and use it in GitHub Desktop.
Oberon getters
PROCEDURE Pos* (self : Type): INTEGER ; RETURN self.pos END Pos;
PROCEDURE Size* (self : Type): INTEGER ; RETURN self.size END Size;
PROCEDURE Foo* (self : Type): REAL ; RETURN self.foo END Foo;
PROCEDURE Bar* (self : Type): INTEGER ; RETURN self.bar END Bar;
PROCEDURE Color* (self : Type): ColorT ; RETURN self.color END Color;
PROCEDURE Top* (self : Type): INTEGER ; RETURN self.top END Top;
PROCEDURE Width* (self : Type): INTEGER ; RETURN self.width END Width;
PROCEDURE Options* (self : Type): SET ; RETURN self.options END Options;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment