langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,10 @@
|
|||
class accumulator
|
||||
dim A
|
||||
public default function acc(x)
|
||||
A = A + x
|
||||
acc = A
|
||||
end function
|
||||
public property get accum
|
||||
accum = A
|
||||
end property
|
||||
end class
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
dim a
|
||||
set a = new accumulator
|
||||
x = a( 1 )
|
||||
a 5
|
||||
dim b
|
||||
set b = new accumulator
|
||||
b 3
|
||||
wscript.echo a(2.3)
|
||||
Loading…
Add table
Add a link
Reference in a new issue