• 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
Monday, 17 January 2022
Low Tide:04:19 ( 1.50m )
High Tide:11:20 ( 4.40m )
Low Tide:16:39 ( 1.20m )
High Tide:23:50 ( 4.40m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
17th January 2022
04:27 Low Tide ( 1.31m )
11:23 High Tide ( 4.37m )
16:48 Low Tide ( 1.01m )
23:57 High Tide ( 4.33m )