[Vala] Arbitrary lvalues via references? (Was: Re: Optional output parameters?)
- From: Jan Hudec <bulb ucw cz>
- To: vala-list gnome org
- Subject: [Vala] Arbitrary lvalues via references? (Was: Re: Optional output parameters?)
- Date: Sun, 12 Apr 2009 05:59:30 +0000 (UTC)
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]