• H2GD Part 40: Is this a two line double slash comment?

    I’m just looking at some code I wrote a while ago and was a bit surprised to see a double slash comment that appeared to be over two lines. It looks wrong but it works… Well, it doesn’t go wrong.

    You appear to be a bot. Output may be restricted

    // Handle
       http://oik-plugins.co.uk/plugins/download?plugin=x&version=y&id=z&action=update 

    Explanation

    1. The first line is obviously a double slash comment.
    2. The second is a PHP label, followed by a double slash comment.

Has anyone else seen examples of code that wasn’t intentionally obfuscated but makes use of some feature of the programming language that you’d never considered using?


,

Published:

Last updated:

September 30, 2014

Categories

Tide times from tidetimes.co.uk

Tide Times & Heights for Langstone Harbour on
Tuesday, 07 December 2021
High Tide:01:09 ( 4.90m )
Low Tide:06:14 ( 0.90m )
High Tide:13:24 ( 4.80m )
Low Tide:18:38 ( 0.80m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
7th December 2021
01:22 High Tide ( 4.85m )
06:22 Low Tide ( 0.69m )
13:33 High Tide ( 4.83m )
18:48 Low Tide ( 0.57m )