Hi Jim

What you call auto-casting, is really called default argument promotion. So
an function/method expecting a double would happily accept a float, a
function/method expecting a long would also take an int or short, and
without the need on any explicit cast. And this isn't even C++, but plain C.

Casts in C++ come in different flavours, see e.g.
http://stackoverflow.com/questions/28002/regular-cast-vs-static-cast-vs-dyna
mic-cast

I'm continuously trying to make sure the code compiles without any warning
under Windows (as seen on my machine) as well as Linux (as seen on Travis),
and also occasionally did some work to fix some warnings in Mac (I usually
don't get to see those), but the vast majority of warnings in Mac are just
bogus, at least to my understanding.
Would be really nice to somehow get them fixed or silenced, as to not miss
tree the tree (of a valid warning) in the forest (of bogus ones)...

Bye, Jojo

-----Original Message-----
From: Jim Newton [mailto:[email protected]] 
Sent: Saturday, April 25, 2015 11:33 AM
To: [email protected]
Subject: Re: [Mscore-developer] running tests on mac via xcode

I also don't understand the C++ concept of casting.  Of course I have a very
high level conceptual understanding.  But the whole system seems to get
confusing at the extremes.  I.e., if there are many different methods none
of which exactly match, and lots of ways to auto-cast the arguments.  Which
one has priority, and do we know whether this decision happens the same way
on every version of every compiler on every architecture, independent of in
which order the files were compiled etc.

I am very new to C++.  I'm using xcode on the mac.  When I compile
musescore, it compiles with no errors, but nevertheless with lots of
warnings.   I'm afraid to fix any of the warnings because they are in code I
don't understand.  It would be great if we (the collective developers) could
eliminate all the warnings.  Not sure if that is even possible, as perhaps
some of the warnings are just plain wrong?  Not sure.







--
View this message in context:
http://dev-list.musescore.org/running-tests-on-mac-via-xcode-tp7579199p75792
09.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications Performance
metrics, stats and reports that give you Actionable Insights Deep dive
visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to