З/
Size: a a a
З/
d
З/
{.this: self.}
proc sumFields(self: Child): int =
result = parentField + childField
З/
З/
{.this: self.}
proc sumFields(self: Child): int =
result = parentField + childField
{.noSideEffect,
procvar,
rtl,
extern: "nsuIsDigitChar".}
proc isDigit*(c: char): bool =
return c in Digits
AL
З/
З/
proc example(x: int,
y: int,
z: int): string
{.exportc: "int3_tostring".} =
result = "(" & $x & ", " & $y & ", " & $z & ")"
З/
type
Parent = object of RootObj
parentField: int
Child = object of Parent
childField: int
{.this: self.}
proc sumFields(self: Child): int =
result = parentField + childField
AL
З/
З/
З/
var f = File.new()
if f.open("file.txt", File.WRITE) == OK:
f.store_line("Custom text")
f.close()
writeFile("file.txt", "Custom text")
З/
d
З/
З/
M
M
M