wish: fake classes

Woinowski

Active Member
Licensed User
Longtime User
Actually, more of an editing comfort thing but would lool like classes.

A simple fake class would be to allow custom typed variables to use such methods.

Something like this: if in a code module there is a custom type with the same name, some syntax features are possible

Assume a code module named Foo. In that a type Foo is defined. Them for every function that has a first parameter of Type Foo, the following gimick is possible. Assume a function

Sub DoSomething(first as Foo, param as Object)

And then somewhere else the code:

Dim myF as Foo
myF.DoSomething(param)

and B4A could translate that internally to Foo.DoSomething(myF, x)

It's not yet really object oriented, but would allow to think object oriented at least. Would only need a little change to the compiler and to auto-completion.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…