Structures as return

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Structures as return

Post by Lunasole »

Its all about http://www.purebasic.fr/english/viewtop ... 47#p477247
The problem is not new and I even seen few topics about same issues, they didn't helped me anyway.

Of course using whole structures as a return value is bad idea [for perfomance], but having no support of such shit at last just for compatibility with DLLs using that is bad idea too.
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Structures as return

Post by Fred »

Not supported in PB, you will have to write a wrapper to access such function. Moved to feature request as it's not a bug.
Post Reply