Microsoft has some funny var names

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Microsoft has some funny var names

Post by albinopapa » February 11th, 2018, 9:03 pm

Looking through the basic_string class and came across something I thought was kind of funny.

Code: Select all

	template<class _StringViewIsh>
		using _Is_string_view_ish = enable_if_t<conjunction_v<
			is_convertible<const _StringViewIsh&, basic_string_view<_Elem, _Traits>>,
			negation<is_convertible<const _StringViewIsh&, const _Elem *>>>>;
Really? -ish?

I never would have thought that description would have made it into their version of the standard library lol.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Microsoft has some funny var names

Post by chili » February 12th, 2018, 10:36 am

I always found CLock from the MFC mildly amusing.
Chili

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Microsoft has some funny var names

Post by albinopapa » February 12th, 2018, 7:44 pm

Ha, yeah.

Did they rename it, because I can't find CLock on the msdn, and of course googling mfc clock gives me time clock related info. I know MFC apps are prefixed with C so this should be a Lock, but all I can find are CSingleLock and CMultiLock.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Microsoft has some funny var names

Post by chili » February 13th, 2018, 1:12 am

It was actually a bit of a joke on this page here: http://www.relisoft.com/win32/active.html
Chili

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Microsoft has some funny var names

Post by albinopapa » February 13th, 2018, 4:50 am

Ah, I see.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply