Home » Developing U++ » U++ Developers corner » upp GTK compatibility for Ubuntu broken?
Re: upp GTK compatibility for Ubuntu broken? [message #34123 is a reply to message #34121] |
Fri, 21 October 2011 09:36   |
|
at improvement, certainly;
4.- Multi threading for Painter: would it be possible to implement something similar fot GLCltr?.
Best wishes.
Thanks,
remark: somehow, my last post didn't work, that's why is empty.
Javier
Thinking about TCC and runtime compilation frameworks (also web templates) I have got an idea how represent the code structure in the tree of virtual objects (basically, via function pointers).
I have put together a litte experimental snippet:
#include <Core/Core.h>
using namespace Upp;
struct Oper {
virtual double Execute() = 0;
virtual ~Oper() {}
};
struct BinOper : Oper {
One<Oper> a;
One<Oper> b;
};
struct Add : BinOper {
virtual double Execute() { return a->Execute() + b->Execute(); }
};
struct Sub : BinOper {
virtual double Execute() { return a->Execute() - b->Execute(); }
};
struct Mul : BinOper {
virtual double Execute() { return a->Execute() * b->Execute(); }
};
struct Div : BinOper {
|
|
|
Goto Forum:
Current Time: Tue Aug 26 07:58:44 CEST 2025
Total time taken to generate the page: 0.04487 seconds
|