mkettn
Joined 8 years ago
Karma
46
Submissions
19
Member since
Sep 27
Joined 8 years ago
In the future one could also argue: tech industry contradicts basic capitalism: nowadays anybody has a smartphone, the phones cannot get any better, and everyone takes care of their smartphone because they don't want to pay alot money for a new one.
IIRC Bill Gates recommended them.
Regarding your mental model: This looks quite similar to IEC 61499
Churches did this in the past (with all the bad side effects). But I guess in more secular regions government needs jump in (with all the bad side effects).
class Device;
class VFS {
public:
class {
friend Device;
void operator()(int y) {/* do stuff with y here*/}} register_device;
};
class Device {
public:
void foo(VFS fs) {
fs.register_device(1);
}
};
int main(int argc, char *argv[]) {
// fails:
// VFS().register_device(2);
// works:
Device().foo(VFS());
return 0;
}
and no need for a badge class (erm... well but an anon class).my c++ skills are a bit rusty, because most of the time python works just fine.
On the other hand, if your bookkeeping application uses a database try to keep things as tidy as possible.