Minor changes and fixes

main
Ad5001 9 months ago
parent 573d2da85e
commit 66bfe1d2c4
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
  1. 10
      README.md
  2. 2
      oop.sh

@ -19,7 +19,15 @@ This is the main script which will use our objects.
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`:

@ -4,7 +4,7 @@
# 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.
_namespace=""
_namespacePath=""
_namespacePath=$(realpath $(dirname ${BASH_SOURCE[0]}))
# Namespace declaration.
# Signature: ([string namespaceName])

Loading…
Cancel
Save