The amazing template which does nothing

Nikolay via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 28 23:56:36 PDT 2015


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))
      .......


More information about the Digitalmars-d mailing list