[Gambas-user] Idea for 3.17
adamnt42 at gmail.com
Wed May 5 18:19:25 CEST 2021
Brian G and Christof Thalhofer wrote about namspacing:
(Not quoted to get to the point)
I would like to see it happen for conflict resolution at object
Circle is possibly a poor example. Consider other classes where the name
has different meanings in different contexts, say "Customer" or
"Product". Namespacing to me means that I can employ two (or more)
libraries (or components) in a project at the same time and no ambiguity
or conflict arises, viz
Dim RetailCust As New RetailLib:Customer
Dim TradeCust as New TradeLib:Customer
All the remainder of the code should only need to refer to the object
name. In fact, once the object is instantiated it should be immutable!
IOW changing the RetailCust object by re-instantiating it as a
TradeLib:Customer needs to be prohibited in order to protect the code.
As for java style naming, YUCK!
Just my 20c worth
More information about the User