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

Published: 18 June 2024
on channel: 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/...


Watch video [Dlang Episode 99] D Language - version (for conditional compilation) online without registration, duration hours minute second in high quality. This video was added by user Mike Shah 18 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 253 once and liked it 14 people.