Skip to content

Instantly share code, notes, and snippets.

@ddlsmurf
Created February 19, 2011 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddlsmurf/834636 to your computer and use it in GitHub Desktop.
Save ddlsmurf/834636 to your computer and use it in GitHub Desktop.
WIP: Illustrations of Nimrod language semantic use cases

WIP: Illustrations of Nimrod language semantic use cases

type
TGen[T] = object
TGen2[T] = TGen[T]
type
TGen[T] = object
TSpef = TGen[string]
type
TGen[T] = object
TSpef[T] = object of TGen[T]
type
TGen[T] = object
TSpef = object of TGen[string]
type
TGen[T] = tuple[a: T]
TSpef = tuple[a: string]
var
a: TGen[string]
b: TSpef
a = b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment