Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Funny typo
Funny typo [message #58751] Thu, 18 August 2022 14:01 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
void OptimiserTest()
{
....
}

void OptimiserOptions()
{
....
}

CONSOLE_APP_MAIN
{
	StdLogSetup(LOG_COUT|LOG_FILE);
	HttpRequest::Trace();
	OptimiserOptions();
	return
	OptimiserTest();
	return;
}


Took me 3 minutes to figure out why OptimiserTest is being called..

[Updated on: Thu, 18 August 2022 14:01]

Report message to a moderator

Re: Funny typo [message #58756 is a reply to message #58751] Sat, 20 August 2022 02:27 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
;)

[Updated on: Sat, 20 August 2022 02:28]

Report message to a moderator

Re: Funny typo [message #58772 is a reply to message #58756] Thu, 25 August 2022 08:06 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
What bad luck. A compiler should have detected two returns in a row.

Best regards
IƱaki
Re: Funny typo [message #58774 is a reply to message #58751] Fri, 26 August 2022 13:12 Go to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 220
Registered: June 2011
Experienced Member
Your British spelling of Optimizer broke my brain before the second return did : Very Happy
Are we going to do a global find and replace of Color with Colour next? Shocked
Previous Topic: Anyone tried ZAPCC compiler with mold?
Next Topic: Sound and plugin/portaudio
Goto Forum:
  


Current Time: Mon Apr 22 09:18:18 CEST 2024

Total time taken to generate the page: 0.03095 seconds