I now have a cmod which is in a subdir src/post_modules/USB, which
gives me an USB.devices(), USB.Iterator(), USB.device() and USB.transfer().

The usual way this works, is that one starts with:

        object dev=USB.devices();

and then you do a foreach() which gets the Iterator, which delivers the
devices, etc.

Now, what if I'd like it to start with:

        object dev=USB();

(and then the rest with foreach() etc. same as above).

Are there any aesthetical or technical reasons not to prefer this?
(I'm all for brevity).
If there are no obvious objections, what would be the easiest way
to implement this?  Is this doable in the cmod?  Are there any existing
modules that did it this way?
-- 
Stephen.

"There are three types of people in this world: those who make things happen,
 those who watch things happen and those who wonder what happened."

Reply via email to