Hi,
read(2) is a system call like this:
ssize_t read(int fd, void *buf, size_t count)
I believe that Vala 0.10 has read method like this:
ssize_t read (uint8[] buffer, size_t count, Cancellable? cancellable = null)
You should see the similarity.
I'm dealing with some code that uses 0.10
Hello list,
I stumbled on some (for me) unexpected behaviour when setting and
getting a property at the same time, which is not consistend with simple
types like int.
When doing something like
int x = (myclass.myproperty = y);
x will be set to y, and not whatever mycalss.myproperty will be
I think that it is pretty consistent and expected behaviour not only in
Vala but in other languages as well (as long as they allow such things). I
would be worried if it would work other way around. Example:
int x, y;
x = 2;
y = x = 3;
I expect that both y and x will have same value, 3. I would
int x, y = 9;
2012/11/1 Jarosław Ciupiński kotow...@gmail.com
I think that it is pretty consistent and expected behaviour not only in
Vala but in other languages as well (as long as they allow such things). I
would be worried if it would work other way around. Example:
int x, y;
x = 2;
y
I just checked it out with C# and it shows exactly the same behaviour. I
expected it to do
x = 3;
y = x;
rather than
x = 3;
y = 3;
Very interesting and good to know.
I think that it is pretty consistent and expected behaviour not only in
Vala but in other languages as well (as long as