Last change
on this file since 8192 was
8061,
checked in by bensch, 19 years ago
|
merged the scriptengine back to the trunk
|
-
Property svn:executable set to
*
|
File size:
227 bytes
|
Rev | Line | |
---|
[7702] | 1 | -- |
---|
| 2 | -- Luna Account example |
---|
| 3 | -- |
---|
[7808] | 4 | |
---|
| 5 | print("testoutput from lua") |
---|
[7702] | 6 | local a = Account{balance=100} |
---|
[7815] | 7 | a:withdraw(25.00) |
---|
[7702] | 8 | a:deposit(50.00) |
---|
| 9 | print("Account balance = $"..a:balance()) |
---|
| 10 | |
---|
| 11 | local e = Euclid() |
---|
| 12 | print("Euclid gcd = "..e:gcd(10000,2)) |
---|
Note: See
TracBrowser
for help on using the repository browser.