Methods

StrΒΆ

Str(i:NormalTypeInstance)

String representation of normal type instance i Normal type is a user defined type. In addition some types defined by NGS are also normal types.
Source: stdlib.ngs:621

Returns

"<TYPE_NAME attr1=val1 attr2=val2 ...>"

Example

{
  type T
  # nti - Normal type instance
  nti = T()
  nti.a = 1
  nti.b = 2
  echo(Str(nti)) # <T a=1 b=2>
}