|
Kochise wrote:
Please resist from quoting the Bible where different religious oriented people met, here in CodeProject. Keep your Godly features for your Church, here we believe in Code !
I disagree. This forum is not the right place, but there have been plenty of religious discussions in the soapbox, and no-one has suggested they are out of place there.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
araud wrote:
But if you understood me, you just flee from strait question. "WHAT CAN YOU SUGGEST INSTEAD?"
No, I answered it. Recursion is the method you can use to impliment what you're doing in a single method instead of 10 macros. A recursive function calls itself. Look it up in the MSDN
araud wrote:
Sorry my code indeed lacks comments.
But if you followed the convention the rest of the C/C++ world follows, it would be self documenting.
araud wrote:
who told you Jesus Christ didn't like old testament?
(Changing the subject) No-one, but the point of Jesus coming is that we don't live by the law. What the commandments say is not the problem, but unless you're Jewish, they were not written for you, and either way, Paul says that no-one was saved by the Law. I'd feel better if you quoted Jesus, who said the law is summed up in loving God with all your heart, soul, mind and strength, and loving your neighbour as yourself. That's the attitude Jesus came to teach us, not a book of rules.
araud wrote:
Why cristian must omit old testament?
We shouldn't. We should, however, understand who it was written to.
Perhaps this is sufficiently off topic that we should discuss it via email ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Christian Graus wrote:
araud wrote:
But if you understood me, you just flee from strait question. "WHAT CAN YOU SUGGEST INSTEAD?"
No, I answered it. Recursion is the method you can use to impliment what you're doing in a single method instead of 10 macros. A recursive function calls itself. Look it up in the MSDN
recursion? A new sound in my programming life! Now I've found the way to solve my problem! ARE YOU KIDDING? What recursion can do there? Metamacroses are used to copy overloaded template classes and functions with changing argument count. Rewrite a bit of code in the way you advising!
I really thought you said "recursion" about my phrase "But what can you suggest to implement it in this manner". That why I've been falling in excuses of my english.
Christian Graus wrote:
araud wrote:
Sorry my code indeed lacks comments.
But if you followed the convention the rest of the C/C++ world follows, it would be self documenting.
Yes, that's a point I have to work on. I will really try.
//my lovely topic!
Christian Graus wrote:
unless you're Jewish, they were not written for you, and either way, Paul says that no-one was saved by the Law
Jesus said "I come not to break the law but to fulfill" and He made the law only tougher - remember "Neither shall you commit adultery" - was said to ancients - "but I tell if you are looking to woman with lust you have already commited this to her" and so on. And Paul said that Law was the child-guider to Christ. That why each cristian must know the Law first and then receive the salvation by bloody and fierce sacrifice of Lord Jesus. Read please book "the hell's best kept secret" and you will understand why you and me should insist on preaching Law first, and ONLY when people say "What shall we do, men and brethren?" we can introduce them our Lord and saviour. In other way Jesus will be useless and devaluated for them.
sincerely yours, bro in Christ, Alexander
"7 You shall have no other gods before me. 8 You shall not make an images in order to bow down to them or serve them. 11 You shall not take the name of the LORD your God in vain. 12 Observe the sabbath day 16 Honor your father and your mother, that your days may be prolonged. 17 You shall not kill. 18 Neither shall you commit adultery. 19 Neither shall you steal. 20 Neither shall you bear false witness against your neighbor. 21 Neither shall you covet anything that's your neighbor's." Your God
|
|
|
|
|
araud wrote:
Jesus said "I come not to break the law but to fulfill"
Yes, that's right. But, He was still talking to the people it was written to.
araud wrote:
and He made the law only tougher
Yes, He did. Because instead of an external law where only actions matter, He told us to look at our attitudes. And once again, this is reason to not be quoting the external law, as if it was a Christian concept. It's not, but it's not in part because it falls short.
araud wrote:
And Paul said that Law was the child-guider to Christ.
For those who did not have Christ, yes. He wasn't saying we need to follow the Law for a while, then find Christ, but rather that the law was a signpost to the coming of Christ. He said this to preach Christ to those who were following the Law.
araud wrote:
That why each cristian must know the Law first and then receive the salvation by bloody and fierce sacrifice of Lord Jesus
Rubbish.
araud wrote:
Read please book "the hell's best kept secret"
I don't have it, and I don't want it. I prefer to read the Bible
araud wrote:
you will understand why you and me should insist on preaching Law first, and ONLY when people say "What shall we do, men and brethren?" we can introduce them our Lord and saviour. In other way Jesus will be useless and devaluated for them.
Read Galatians. They tried to attach the law to Christianity, and Paul called them foolish for it.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I wonder what the church are you going to? This is my first meeting with such a "cristianity" that don't honor the old testament.
P.S. and what about the recursion?
"7 You shall have no other gods before me. 8 You shall not make an images in order to bow down to them or serve them. 11 You shall not take the name of the LORD your God in vain. 12 Observe the sabbath day 16 Honor your father and your mother, that your days may be prolonged. 17 You shall not kill. 18 Neither shall you commit adultery. 19 Neither shall you steal. 20 Neither shall you bear false witness against your neighbor. 21 Neither shall you covet anything that's your neighbor's." Your God
|
|
|
|
|
araud wrote:
This is my first meeting with such a "cristianity" that don't honor the old testament.
I'm sorry that you chose to completely misinterpret what I said instead of answering it. Not honouring the Old Testament is different to completely misunderstanding it, which is what you appear to be doing.
araud wrote:
P.S. and what about the recursion?
I admit I didn't look at your code that closely, I just saw a bunch of macros that call one another, which is usually a really bad idea. I'll take your word for it that it's a good idea in this case, although I maintain that it's a terrible idea to throw away convention and not name them in all caps.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Christian Graus wrote:
I'm sorry that you chose to completely misinterpret what I said instead of answering it. Not honouring the Old Testament is different to completely misunderstanding it, which is what you appear to be doing.
Yeah? Strange... I thought I'm in one boat with Marthin Luther, Charles Spurgeon and all others fathers of faith of our days (as we looking to interpretation of bible). Tell me please the denomination your church belongs to.
Christian Graus wrote:
I admit I didn't look at your code that closely
How dear you to set a mark to things you haven't familiarized with?! Don't you know the judge must first investigate and only then pronounce sentence? You really upset me.
Concerning convention - there are several. Which one should I adhere to? And the most straight question: is there a convention about metamacroses? So if there's no why can't I determine it? My style is to keep plain macros definitions capitalized like this
#define WM_MY_MESSAGE WM_USER+1
but functioning macroses are all lower.
#define foreach(T, cont, it) for(T::iterator it=(cont).begin(); it!=(cont).end(); ++it)
And metamacroses that define functions
#define DefIFunctor ... follow function naming convention.
"7 You shall have no other gods before me. 8 You shall not make an images in order to bow down to them or serve them. 11 You shall not take the name of the LORD your God in vain. 12 Observe the sabbath day 16 Honor your father and your mother, that your days may be prolonged. 17 You shall not kill. 18 Neither shall you commit adultery. 19 Neither shall you steal. 20 Neither shall you bear false witness against your neighbor. 21 Neither shall you covet anything that's your neighbor's." Your God
|
|
|
|
|
araud wrote:
Tell me please the denomination your church belongs to.
To reiterate - I have no intention of hiding behind denominations, or 'great men of faith', I'm just standing on what the Bible says. Are you willing to discuss that ?
araud wrote:
you haven't familiarized with
I saw what looked like an overuse of macros. I saw you didn't capitalise their names, therefore you're inexperienced. The macros looked to me like they could be replaced with a function that took a number to say how often they were called. You assure me I am wrong, fine.
araud wrote:
Concerning convention - there are several.
Then adhere to the ones recommended by Bjarne Stroustroup. I've never known any standard for macros except all capitals for the names
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Christian Graus wrote:
To reiterate - I have no intention of hiding behind denominations, or 'great men of faith', I'm just standing on what the Bible says
ok, you're doing quite right staying on your own point of view to bible, someone else's faith is not your own, this is good. You are saved since your hope is on Jesus Christ. But Jesus built the Church for all cristians. And it would be better to choose a good one(that stays on bible, teaches bible and acts like bible says) and start visiting it. It's easy to find this church - they're preaching on streets. Remember what you're saying about convention! Without following a good church faith convention you will be looking as I do with no convention in my code .
"7 You shall have no other gods before me. 8 You shall not make an images in order to bow down to them or serve them. 11 You shall not take the name of the LORD your God in vain. 12 Observe the sabbath day 16 Honor your father and your mother, that your days may be prolonged. 17 You shall not kill. 18 Neither shall you commit adultery. 19 Neither shall you steal. 20 Neither shall you bear false witness against your neighbor. 21 Neither shall you covet anything that's your neighbor's." Your God
|
|
|
|
|
araud wrote:
And it would be better to choose a good one(that stays on bible, teaches bible and acts like bible says) and start visiting it.
I'm a regular member of the same church for 14 years. I know all this. I just meant that what the Bible says is what matters. I don't get why you want to discuss everything but what the Bible says ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Do you dislike comments???
When you use so many macros, as you've done in functor.h, as a bare minimum you need a comment for each of the major ones.
And I really freaked out when I saw this completely undocumented code:
template<int bugfix>
void SetOnCall_BugFix(POnCall pOnCall){
OnCall=pOnCall;
OnCall->AddRef();
}
It looks as though you've done some clever stuff, but I never trust code that is so poorly documented.
|
|
|
|
|
Hello, than you for this admonition. You are quite right, comments must be there. This is realy problem. I will try to correct this. Don't you know can I resend content of my article? For now, SetOnCall_BugFix - is a Bug Fix for compilator. This code was moved to template function because compiler didn't like it in plain way. It told me "error C2039: 'AddRef' : is not a member of 'IFunctor<t>". Thank you! I'm waiting for your new recensions!
"7 You shall have no other gods before me. 8 You shall not make an images in order to bow down to them or serve them. 11 You shall not take the name of the LORD your God in vain. 12 Observe the sabbath day 16 Honor your father and your mother, that your days may be prolonged. 17 You shall not kill. 18 Neither shall you commit adultery. 19 Neither shall you steal. 20 Neither shall you bear false witness against your neighbor. 21 Neither shall you covet anything that's your neighbor's." Your God
|
|
|
|
|
araud wrote:
Don't you know can I resend content of my article?
Click on [Modify this article] in the upper right corner
|
|
|
|
|
thank you! sometimes I am so concentrated on something difficult that I don't notice simple things. My wife already has resigned to this.
"7 You shall have no other gods before me. 8 You shall not make an images in order to bow down to them or serve them. 11 You shall not take the name of the LORD your God in vain. 12 Observe the sabbath day 16 Honor your father and your mother, that your days may be prolonged. 17 You shall not kill. 18 Neither shall you commit adultery. 19 Neither shall you steal. 20 Neither shall you bear false witness against your neighbor. 21 Neither shall you covet anything that's your neighbor's." Your God
|
|
|
|
|
I like your idea of extending functors across thread/process boundaries.
You might gain portability if you use Don Clugston's delegates to implement the plain functors.
Wolfgang Reichl
|
|
|
|
|
thank you! Now I'm working on new PRC based on CRemoteFunctor, my new video system already uses this tecnology. Communication between client and server is descripted like this:
REMOTE_INTERFACE(CRPCVideo,
<blockquote>
REG_CNT_FUN(OnCamAppeared, (CString ))
REG_CNT_FUN(OnCamDisappeared, (CString ))
REG_CNT_FUN(OnFormatChanged, (CString , SPBITMAPINFO ))
REG_CNT_FUN(OnFrameReady, (CString , SPBYTE ))
,
REG_SVR_FUN( GetFrame, (CString ))
REG_SVR_FUN( Subscribe, (CString , byte ))
REG_SVR_FUN( Unsubscribe, (CString ))
</blockquote>
)
both sides inherit CRPCVideo(macroses give different code for client ad server) and implement pure virual functions of this class, like this:
void CVideoCamClient::GetFrame(){
...
}
Caller has remote functors of it's opponent and calls them simply like this:
...
$OnFrameReady(camname, dib);
but allowed identifier symbol. I use it to mark functors.
...
When all bugs will be corrected I will public those headers.
P.S. assuredly class created in REMOTE_INTERFACE needs remote provider - class that allows to transfer data between connection points.
...
SetProvider(pProvider);
...
"7 You shall have no other gods before me. 8 You shall not make an images in order to bow down to them or serve them. 11 You shall not take the name of the LORD your God in vain. 12 Observe the sabbath day 16 Honor your father and your mother, that your days may be prolonged. 17 You shall not kill. 18 Neither shall you commit adultery. 19 Neither shall you steal. 20 Neither shall you bear false witness against your neighbor. 21 Neither shall you covet anything that's your neighbor's." Your God
|
|
|
|
|