473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Replicating class functions

105 100+
Hi guys,

I would like to create a class that "assimilates" functions from other classes and uses these function as if were defined within itself.

The objective of this little excersise is that I would be able to "extend" multiple classes and would be able to call functions from a single object.

Anyone have any ideas?
Feb 8 '10 #1
3 1141
Dormilich
8,658 Expert Mod 8TB
sounds to me like a Facade Pattern, although from my understanding, you need the logic of which method/class to choose anyway (in that aggregator class or in the script), so I wouldn’t use such a class. and btw. if you don’t have a really good error handler, debugging might turn into a nightmare.
Feb 8 '10 #2
aktar
105 100+
Funny you should mention debugging, because the idea was to introduce a facade pattern for better debugging from the built-in debugger.
The current workaround I have is a bit messy and doesnt do this debugger too many favours.

I've done some research and it seems the only clean way of doing this is to do a chain extend (a extends b, c extends b etc).
But this approach seems very ineffictive as I would also like to reduce processing overheads by loading only the required functions at runtime.
Feb 8 '10 #3
Dormilich
8,658 Expert Mod 8TB
do you do autoloading?
Feb 8 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Nathan Simpson | last post by:
Hi, We have one domain with a mixture of NT PDC's one Win2K DC (which was the first installed) and 4 Windows 2003 DC's. I created our sites as per MS documentation and created the subnets that...
0
by: Brian E. Seppanen | last post by:
I have a large number of tables in a database, and I'm looking at replicating only 5 of those 4000+ tables to about 5-7 other hosts. The primary server runs 4.0.15 and would replicate to 3.23...
2
by: Jim | last post by:
We had a two-site system go badly wrong as a result of something. The net result of this was that the publisher had to be completely reformatted and reinstalled. The server has, as a result of...
3
by: almousawi | last post by:
I am working on a DB2 replication program that used to work. I ran the "warm" capture program to get a cold start and I am running the apply program, but, the apply does not replicate the data. I...
0
by: Rojo Royo | last post by:
Hi, I am using Q replication on a system 390 running DB2 version 7. When I replicating data no problem and then suddenly someone does an online reorg, my databases loses synchronization source...
0
by: nwiebe | last post by:
Hi, does anyone know how to avoid replicating delete statements? I have a table in a source database. This table is pruned occasionally. I'd like to have a copy of this table in a second...
0
by: ceadtinneh | last post by:
We're running merge replication between to SQL Server 2000 servers. The application isn't very high volume the setup is pretty vanilla (ie no filters, etc). We have a push subscription set up...
4
by: David_from_Chicago | last post by:
What I am trying to do is to simulate the LINEST functionality from Excel in Access through VBA. When I use LinEst in Excel I can get back five statistical results. Here are is the formula array...
16
by: aswath | last post by:
hi dere, i have a question. i have an array with replicating values.... al i want to do is delete all replicating values and store the result in another array. eg., String a={1,2,3,3}; String...
1
by: qwedster | last post by:
Howdy! I want to write a Custom Event Handler replicating textBox1_TextChanged event handler to update textBox2 with textBox1 text as I type. I tried the following in vain. Please help. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.