Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 3. Statements > The scope Statement

3.13. The scope Statement

The scope statement is original to D, although its functionality can be found with slight variations in other languages, too. With scope, it is very easy to write exception-safe code in D and, most important, to also read and understand it later. The correctness of code using scope can be achieved with other means; however, the result is inscrutable except for the most trivial examples.

Writing


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial