- Semantics of comma operator - 3 Updates
- [Ad] neoGFX - The Ultimate C++ GUI Library -- Coming Soon - 1 Update
- Semantics of comma operator - 1 Update
- The Rapture (Reprise ad infinitum) - 1 Update
Geoff <geoff@invalid.invalid>: Jan 09 02:01PM -0800 On Tue, 9 Jan 2018 18:06:51 +0000, Chris Vine >Incidentally if you want to post these kinds of messages, you should >post the error message. >Chris The warning message is "Possible misuse of comma operator here" and the offer to fix is issued in the Xcode IDE. The option being set is "CLANG_WARN_COMMA" per the project configuration help. Setting it to NO is also an option. I'm not sure what the default is supposed to be and it appears it's not documented by Apple yet for Xcode. This is in fact a C file, not C++ and I posted in the wrong group, sorry about that. |
Geoff <geoff@invalid.invalid>: Jan 09 02:09PM -0800 On Tue, 9 Jan 2018 12:50:16 -0500, "James R. Kuyper" >> ... I am not the original author of this code. >> What is your opinion? >while( (c = fgetc(in)) != EOF ) Thanks. I like this better than maintaining the idiomatic use. |
Geoff <geoff@invalid.invalid>: Jan 09 02:27PM -0800 On Tue, 9 Jan 2018 18:58:23 +0100, "Alf P. Steinbach" >For binary file that would be technically wrong. For text file it would >mislead the reader, indicating a possibility (reading a null value) that >can then never occur. And so you really don't want to do that. It's a text file. The usage appears twice, counting the file characters first, allocating memory, then rewind and load the file into the allocated buffer. >> What is your opinion? >The first loop is idiomatic and correct. Indeed it is. That's why I was surprised when the warning showed up in previously valid code. It seems Apple decided to set the default in Xcode to warn about suspicious comma usage. I created a new "hello world" project from the GUI and it defaults to CLANG_WARN_COMMA = YES. This is in the "all languages" section of the Xcode project settings so they have chosen to apply it universally. |
legalize+jeeves@mail.xmission.com (Richard): Jan 09 10:13PM [Please do not mail me a copy of your followup] Thiago Adams <thiago.adams@gmail.com> spake the secret code >Do you mean implement only the UI for each platform? If you watch the video (I suspect Mr. KILLFILE has not), you'll see that they attempted initially to do what he suggested but found that they were duplicating lots of view logic, hence they ended up with the view logic in the cross-platform C++ side of things and only added a thin veneer of delegating UI code for each platform. >Only means android, ios, web, windows dekstop, linux, >windows phone.. >This may work for big companies. The DropBox team was not large, but it certainly wasn't one person. They had already done the complete duplicate-the-entire-app between iOS and Android and for their next version were determined not to repeat that mistake and duplicate as little as possible between platforms. This is (a positive) real-world experience and worth watching and understanding, even if you disagree with their approach. That's why I suggested it may be of interest to you. You are, of course, free to ignore it. -- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Terminals Wiki <http://terminals-wiki.org> The Computer Graphics Museum <http://computergraphicsmuseum.org> Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com> |
Geoff <geoff@invalid.invalid>: Jan 09 02:03PM -0800 > return 1; } > I added "restrict" because to me this is more of a C > question than a C++ question. It is in a C context. I managed to post the question in the wrong group somehow. It is a text file opened with "rt" flags in the fopen call. |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jan 09 01:39PM -0800 On Tuesday, January 9, 2018 at 4:27:05 PM UTC-5, Daniel wrote: > > > ...I would suggest that feedback is a valuable thing... > > you do not have goals which are to pursue God in spirit > No, not the mythical side, because there is no evidence... Not everybody will be saved, Daniel. Evidence comes from the spirit. A person cannot come to Jesus unless they are drawn from within by God. Once they are drawn they ask Him to forgive their sin, they are forgiven. This restores them to a right-standing with God, and the punishment of sin (spiritual death) is taken away. This makes them alive again in the spirit, born again. They are still attached to this old man flesh, but their existence is augmented by the new thing. It is from within that new augment that God is able to prove Himself to each person. The term you hear people say is they "know that they know that they know" that they're saved. It is not from natural senses, but is from the spirit. There are also evil spirit influences in this world, which lead people continually to sin. They can also give a person a "spiritual feeling," but it does not last, and is not naturally moving toward Jesus Christ. This is the truth, Daniel. You do not know it because you are not seeking for the truth. You are standing in your arrogance and pride believing you are correct, shooting down things I would teach you about Christianity. That inability you have to seek the truth is why you are not drawn by God to it, because God only draws those to find the truth who are truly seeking for it. Good day, Daniel. -- Thank you! | Indianapolis, Indiana | God is love -- 1 John 4:7-9 Rick C. Hodgin | http://www.libsf.org/ | http://tinyurl.com/yaogvqhj ------------------------------------------------------------------------- Software: LSA, LSC, Debi, RDC/CAlive, ES/1, ES/2, VJr, VFrP, Logician Hardware: Aroxda Desktop CPU, Arxita Embedded CPU, Arlina Compute FPGA |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment