Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1792
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 {

		
		
		
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: RM: "Patch ready"
Next Topic: Little experiment compiling to function pointer calls...
Goto Forum:
  


Current Time: Tue Aug 26 07:58:44 CEST 2025

Total time taken to generate the page: 0.04487 seconds