[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #3143: Structure size calculations seem off , varptr to structure do not return a pointer to data area
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #3143: Structure size calculations seem off , varptr to structure do not return a pointer to data area
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Thu, 19 Feb 2026 19:18:28 GMT
- To: brian@xxxxxxxxxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.3143&from=L21haW4- Comment #3 by Brian G: since assigning a pointer to a structure, varptr returns the actual address of the structure data. And since structures are an interface for c programs, would it not be more proper to have a structure created with new, return the data address with varptr as well, as in most cases you are working with the actual structure. and it would be consistent in all cases. I would not have to redefine memcpy as an example 6 times once for each structure, rather I could actually use a pointer datatype.. and yes i could use the .data for new created structures but again, being more consistent ... ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----
| [Gambas-bugtracker] Bug #3143: Structure size calculations seem off , varptr to structure do not return a pointer to data area | <bugtracker@xxxxxxxxxxxxxx> |