Minor changes and fixes
This commit is contained in:
parent
573d2da85e
commit
66bfe1d2c4
2 changed files with 10 additions and 2 deletions
10
README.md
10
README.md
|
@ -19,7 +19,15 @@ This is the main script which will use our objects.
|
||||||
|
|
||||||
importNamespace Example.shn
|
importNamespace Example.shn
|
||||||
|
|
||||||
Example.Object t "Test"
|
Example.Object t1 "Test"
|
||||||
|
Example.Object t2 "Example"
|
||||||
|
|
||||||
|
t1.print
|
||||||
|
t2.print
|
||||||
|
|
||||||
|
t1.name = "New name"
|
||||||
|
|
||||||
|
t1.print
|
||||||
```
|
```
|
||||||
|
|
||||||
`Example.shn`:
|
`Example.shn`:
|
||||||
|
|
2
oop.sh
2
oop.sh
|
@ -4,7 +4,7 @@
|
||||||
# Internal variables are marked with a beginning underscore, like in most other languages.
|
# Internal variables are marked with a beginning underscore, like in most other languages.
|
||||||
# Signatures are a list of arguments.. Those within <> are mandatory, the ones within [] are optional.
|
# Signatures are a list of arguments.. Those within <> are mandatory, the ones within [] are optional.
|
||||||
_namespace=""
|
_namespace=""
|
||||||
_namespacePath=""
|
_namespacePath=$(realpath $(dirname ${BASH_SOURCE[0]}))
|
||||||
|
|
||||||
# Namespace declaration.
|
# Namespace declaration.
|
||||||
# Signature: ([string namespaceName])
|
# Signature: ([string namespaceName])
|
||||||
|
|
Loading…
Reference in a new issue