►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, duration hours minute second in high quality that is uploaded to the channel Mike Shah 18 June 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 253 times and liked it 14 visitors.