On Wednesday, 29 April 2015 at 06:56:37 UTC, Nikolay wrote:
On Tuesday, 28 April 2015 at 02:36:38 UTC, Vladimir Panteleev
wrote:
http://blog.thecybershadow.net/2015/04/28/the-amazing-template-which-does-nothing/
Thanks for good article
little mistake: return from void function:
/// Search a website for something, and parse the
/// first search result's webpage.
void getItemInfo(string itemName)
{
// Let's go! First, construct the URL.
return ("http://www.example.com/search?q=" ~
encodeComponent(itemName))
.......
Fixed, thanks. Though, you technically still can use "return
expression" in a void function, as long as expression's type is
void :)