[Dlang Episode 99] D Language - version (for conditional compilation)

Опубликовано: 18 Июнь 2024
на канале: Mike Shah
253
14

►Full DLang Series Playlist:    • D Language (DLang) Programming  
►Find full courses on: https://courses.mshah.io/
►Join as member to get perks:    / @mikeshah  

►Lesson Description: In this lesson I show you how we do conditional compilation in the D programming language. If you're coming from a C background, then you're probably use to using the preprocessor with #if/#define/#endif and other related ideas. D does not have a preprocessor, because it can compute so much at compile-time, and often this ends up making the language much cleaner. So in this lesson I introduce 'version' which can be used to control conditional compilation, whether for specific features or platforms. I'll show a few examples, and one real world use case where I use this in my code. As always, share your interesting use cases with the community in the discussion below!

►Please like and subscribe to help the channel!
►YouTube Channel:    / mikeshah  
►Join our free community: https://courses.mshah.io/communities/...


Смотрите видео [Dlang Episode 99] D Language - version (for conditional compilation) онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Mike Shah 18 Июнь 2024. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 253 раз и оно понравилось 14 посетителям.