Interfaces shouldn't always be a pointer!
Posted: Thu Mar 12, 2009 8:02 am
It occurred to me that interfaces are always a forced pointer, weather or not you have * prefixed the variable. it somewhat troubling, I can understand that under most circumstances that interfaces would be a pointer (created off site) and it looks neater to omit the pointer symbol from the code under these conditions. however, it looks sloppy and inconsistent to have interfaces along side of structures and or under the same block of memory (Objects). It would be consistent, cleaner, and easier to have variables using a interface type be declared like a structure (actually allocating the memory) and use the garbage collection that Pure Basic has built in for local variables, given that off site or complex interfaces still have to do there own garbage collecting with release(). Just my two cents on the issue.
to simply put it, It would be nice to have control weather its is a pointer or not.
to simply put it, It would be nice to have control weather its is a pointer or not.