[Gambas-user] Pb instanciating inotify watch

Cedron Dawg cedron at exede.net
Thu Mar 7 08:34:24 CET 2019


I'm feeling prescient.  I wrote this a few hours ago:

https://forum.gambas.one/viewtopic.php?f=4&t=669

It's called "The True True"

Not exactly spot on, but close.


----- Original Message -----
From: "Tobias Boege" <taboege at gmail.com>
No, because I wrote that page and I also wrote the initial component,
there can't be a discrepancy here :-)

The excerpt you quote doesn't say you have to specify all the events
you want to watch as a bit-wise OR. It says you can use an OR of
multiple events to turn them on or off in a single call -- a single
event is also a bit-wise OR of events. You should still be able to
activate or deactivate them individually at any time.

Every use of `Watch.Events[Mask] = Value` sets all events in the
Mask (an OR of event constants representing a set of events) to Value,
without affecting the state of events outside the set. That's how
it was supposed to be, how it was initially implemented, how it is
documented inside the source code, how the array interface makes sense,
it's just not what the current implementation does.

(How are those Gambas test-suites coming along...?)

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----


More information about the User mailing list