Wish Definition von "Type" als Private

D

Deleted member 103

Guest
Hi,

Here again the request, it is really very important.
I accidentally found the error in my app.
I defined this variable in main module and in a library, so compilation was not possible.
All error messages had no indication of the variable.
B4X:
Type Point (x As Int, y As Int)
 

LucaMs

Expert
Licensed User
Longtime User
Although having the possibility to define private a type can be useful, I did not understand your post (you've probably used the term variable instead of type).

I can have a type defined in a class of a library, like:

Type tPoint(x as int, y as int)

and the same in a project without "conflicts".

[beautiful, unuseful, almost empty library named Buttami2.jar with that type defined]
 

Attachments

  • Buttami2.zip
    2.6 KB · Views: 266
  • Type test.zip
    7.7 KB · Views: 264
D

Deleted member 103

Guest
Although having the possibility to define private a type can be useful, I did not understand your post (you've probably used the term variable instead of type).
Yes you are right.

But this is about B4i and not B4a, and maybe that makes the difference.
 
D

Deleted member 103

Guest
I'm sure that private types will be added at some point. Still, it is not recommended to create a type named Point. Add a two or three letter prefix (ex: FPPoint).
Thank you in advance.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…