|
honey the codewitch wrote: it's perfectly fine to have a zero length match
I didn't say the engine can't do it. I am saying a programmer should never, not for any reason, write expressions like that for an engine.
|
|
|
|
|
Sure, but in this case, it was sufficient for running down this bug, because of the way the engine works. I did change it to + just to dot my "i"s and cross my "t"s but same result.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Might be an ordering issue: \r(0x0d) > \n(0x0a) .
Mircea
|
|
|
|
|
It is, but I just can't find where it's creating the problem. I've been kind of avoiding it at the moment.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Message removed
modified 19-Apr-24 15:50pm.
|
|
|
|
|
I think this is C++, so it should have been posted in that forum
Anyway, a class can have a default constructor, in which case no arguments are required to construct an object of the class. You just write new Class and the constructor assigns a default value to each member...or lets the compiler assign them...or leaves some unassigned, which is usually naughty.
|
|
|
|
|
Have a look at this page : cplusplus.com tutorial variables/[^] and scroll down to the section titled "Initialization of variables."
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Salvatore Terress wrote: I did not make many friends with my last rant.
Hopefully that will not stop somebody to tell me You're still in the wrong forum dude. This is the same reason why celebrities seem mean or hot chicks seem standoff-ish. Sometimes coders want to chillax despite having coded their entire lives. That's why there's a forum for programming questions.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: hot chicks seem standoff-ish
For you, maybe.
|
|
|
|
|
Ha ha ha ha. Touché.
Jeremy Falcon
|
|
|
|
|
PIEBALDconsult wrote: For you, maybe
They're not that way for everyone?
Do tell.
|
|
|
|
|
Greg Utas wrote upthread: I think this is C++, so it should have been posted in that forum
Not only that, this would be a QT question, and should probably be asked in a QT specific forum.
Maybe you should get a copy of "The C++ Programming Language" by Bjarne Stroustrup, which covers the language in depth by the person who invented it. If there's nothing that even remotely related to your issue in the book (hint, there's nothing about QT in there at all), then you probably want to ask somewhere that's more relative to your question. Also, consulting the book and reading some of the chapters cannot but help you with your understanding of the language. There's a lot of stuff in C++. I'm sure others here also find that particular book a useful tool. It's not unknown for me to wonder "Wait, how does that work again?" and dig through and not only find the answer to the question that I was asking, but find alternate ways of solving the problem, sometimes in a much more elegant fashion that the approach I was considering. IMHO it's worth the cost.
This isn't meant to be a rant at you. Just a suggestion about how to improve your C++ knowledge, and a gentle reminder that the users here may not be experienced with QT, so QT specific questions should posted on a forum that caters to QT. Likewise for gtkmm or WxWidgets or any other framework that are not part of the core language.
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown
|
|
|
|
|
Message Closed
modified 19-Apr-24 15:49pm.
|
|
|
|
|
No, it is NOT. Apparently you did not read what I wrote because it describes exactly what you posted about - member initialization during construction.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
BTW - my reply was to the original poster, not you. They have deleted their post and you can see the double indentation indicating a post used to be there.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
I was in a job interview. The manager handed me his laptop and said, "I want you to try and sell this to me."
I put it under my arm, left the building, and went home. Eventually, he called my mobile and said, "Bring it back here right now!"
I said, "$100 and it's yours.
|
|
|
|
|
"This pen... is a laptop!"
|
|
|
|
|
Did you get the job, or the laptop, or both?
|
|
|
|
|
|
A young Programmer and his Project Manager board a train headed through the mountains on its way to Wichita. They can find no place to sit except for two seats right across the aisle from a young woman and her grandmother.
After a while, it is obvious that the young woman and the young programmer are interested in each other, because they are giving each other looks. Soon the train passes into a tunnel and it is pitch black. There is a sound of a kiss followed by the sound of a slap.
When the train emerges from the tunnel, the four sit there without saying a word.
The grandmother is thinking to herself, “It was very brash for that young man to kiss my granddaughter, but I’m glad she slapped him.”
The Project manager is sitting there thinking, “I didn’t know the young tech was brave enough to kiss the girl, but I sure wish she hadn’t missed him when she slapped me!”
The young woman was sitting and thinking, “I’m glad the guy kissed me, but I wish my grandmother had not slapped him!”
The young programmer sat there with a satisfied smile on his face. He thought to himself, “Life is good. How often does a guy have the chance to kiss a beautiful girl and slap his Project Manager all at the same time!”
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: I first heard that joke in the previous millennium!
The irony.
|
|
|
|
|
One ancient joke deserves another!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
The original, or rather the first version I've heard, had an Englishman, a Frenchman and a nun instead.
Which reminds me:
Two nuns were walking down the street in the evening when they encountered a flasher.
One nun had a stroke.
The other couldn't reach.
Sorry, I'll get my coat.
|
|
|
|
|
Your coat appears to be missing. I think one of the nuns borrowed it.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
It was new to me.
I figured it might be somewhat recent, since, in my programmer's mind, as I was reading it, I was trying to work out exactly who did what...
|
|
|
|