http://codedot.livejournal.com/ ([identity profile] codedot.livejournal.com) wrote in [personal profile] deniok 2012-02-20 12:54 pm (UTC)

По мотивам беседы родилась шуточная зарисовка на Си:
#if TYPED
	enum {
		MEAN = 365, LEAP = 366
	} ndays;
#else
	int ndays;

	assert((365 == ndays) || (366 == ndays);	
#endif
Однако, если абстрагироваться от реализаций языков программирования, не меняем ли мы все-таки шило на мыло?

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting