Jump to content

Ubercode

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by VanishedUser 2313214sad1sadj (talk | contribs) at 19:27, 14 February 2011 (AfD: Nominated for deletion; see Wikipedia:Articles for deletion/Ubercode). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Wikipedia:Articles for deletion/Ubercode

Nomination of Ubercode for deletion

The article Ubercode is being discussed concerning whether it is suitable for inclusion as an article according to Wikipedia's policies and guidelines or whether it should be deleted.

The article will be discussed at Wikipedia:Articles for deletion/Ubercode until a consensus is reached, and anyone is welcome to contribute to the discussion. The nomination will explain the policies and guidelines which are of concern. The discussion focuses on good quality evidence, and our policies and guidelines.

Users may edit the article during the discussion, including to improve the article to address concerns raised in the discussion. However, do not remove the article-for-deletion template from the top of the article. Christopher Monsanto's follower 2 (talk) 19:27, 14 February 2011 (UTC)

Ubercode is a high level programming language designed by Ubercode Software and released in 2005 for Microsoft Windows. Ubercode is influenced by the Eiffel and BASIC. It has the following design goals:

  1. Compilable language - compiled into Windows EXE files.
  2. Automatic memory management - memory is allocated / freed automatically, and the language has no memory management primitives.
  3. Pre and post conditions - these are run-time assertions which are attached to function declarations, as in Eiffel.
  4. High-level data types - resizable arrays, lists and tables may contain arbitrary components.
  5. Integrated file handling - primitives for transparent handling of text, binary, CSV, XML and dBase files.
  6. Ease of use - language structure is relatively simple, making the language accessible to beginners.

Hello World

Here is the basic Hello world program:

  Ubercode 1 class Hello

  public function main()
  code
    call Msgbox("Hello", "Hello World!")
  end function

  end class

Preconditions and Postconditions

Here is an example using pre- and postconditions. In the example, the IntToStr function validates its input as a string before converting it to an integer:

  Ubercode 1 class PrePost

  function IntToStr(in mystr:string[*] out value:integer)
  precond IsDigitStr(mystr)
  code
    call Val(mystr, value)
  end function

  public function main()
  code
    call Msgbox("OOP example", "IntToStr(10) = " + IntToStr("10"))
  end function

  end class