Replies: 1 comment 2 replies
-
|
I keep meaning to write up some docs about interfaces...sorry about that. So, interfaces are officially supported in brighterscript right now. They're a compile-time only construct, so they don't exist at runtime (which is why they disappear from the transpiled code). Right now, you can use them as class property types, interface property types, and function parameter types. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Poking in the source internals, I found some references on a way to set up "interfaces"; for example there are some tests with a syntax like
interface Person public as string protected as string private as string sub as string function as string interface as string endInterface as string end interfaceI don't see any references on
interfaceon the docs, and if I try to write one, I see thatbscdoesn't give me errors, but it seems that the interface definition "disappears" in the generated.brsfiles.Is this a supported feature from the language? will it become one? (did I misunderstood it?)
Beta Was this translation helpful? Give feedback.
All reactions