Structure and interface returns

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Nero
New User
New User
Posts: 8
Joined: Sat Apr 23, 2011 6:17 pm

Structure and interface returns

Post by Nero »

Hiho,

First: Sorry for my bad english :|

Ok let's say i have a procedure and want to return a pointer to an interface or a structure then i have to declare a new variable with the needed type defintition.

It would be nice if i could just write

Code: Select all

Procedure.MyInterfaceOrStructure Test()
; Do something
ProcedureReturn *MyInterfaceOrStructurePointer
EndProcedure
then i could just write somthing like this

Code: Select all

Result.l = Test()\MyInterfaceOrStructure_ProcedureOrVariable...()
I hope you guy's understand what i mean my english isnt the best :oops:

Mfg Nero