This repository was archived by the owner on May 3, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Classes
Lucius Andrexius edited this page Jan 24, 2023
·
4 revisions
Classes are a way of making Flux a tidy programming language and is one of the ways it differs from Python and makes it object-oriented.
Foundation is Flux's class library.
Classes are built in an orderly way. Here is a diagram that explains it:
| Organisation | . | Package name | . | Module | . | Submodule | . | Etcetera |
|---|---|---|---|---|---|---|---|---|
Riverside.Depth |
. | Esmerelda |
. | Core |
. | Calculation |
. | Difference(a, b) |
System |
. | Console |
. | WriteLine("cats are better than dogs") |
. | N/A | . | N/A |
Obviously, classes don't necessarily need to be executable functions, they can also be variables. E.g.: System.Console.Enabled will return a boolean value.
Still looking for more? Give us a message on the Issues tab.