Author Topic: Comment block  (Read 4407 times)

Offline abraker95

  • Single posting newcomer
  • *
  • Posts: 5
Comment block
« on: October 03, 2013, 11:35:01 pm »
Upon writing my code I accidentally did this while commenting out the code: //(*pointer)=4 which effectively commented out the code as this would /**
I am aware of the other 2 types of comments, but this one is a new discovery. I tried closing it like so: *)// but is didn't work. Additionally, the code compiles while it is commented out like that, meaning it ignores that it is a comment block. I found this weird and interesting, can somebody tell me more about it?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Comment block
« Reply #1 on: October 04, 2013, 12:11:50 am »
Can you post the exact code (copy&paste) that does not work in code-tags please (the #-sign in the forum's editor) ?

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Comment block
« Reply #2 on: October 04, 2013, 01:11:32 am »
Rev. 8997 already deals with this, try a nightly.
(The cause is //(* is used by wxSmith to indicate auto-generated code that should not be modified by the user.  The corresponding end tag is //*) I believe.)