[Vala] Arbitrary lvalues via references? (Was: Re: Optional output parameters?)



Sam Liddicott <sam    > writes:

Although my suggestion was clearly obscene from a coding point of view I
think it ought to have worked.

It ought to be possible to pass an dereferenced  pointer as an out.

Maybe vala rejected it because it was an expression. Try putting the
expression in the line before and
storing the result in an int* tmp and then passing *tmp. If that doesn't
work then it is a vala bug IMHO.

I did try it and it didn't work.

Is there any technical reason why Vala does not (at least it does not seem to) 
support passing arbitrary lvalues to out and ref parameters? Like that it's too 
hard to construct the C expression or something?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]