Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 102435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:57:45+00:00 2026-05-11T00:57:45+00:00

What language(s) have comments with side effects? In essence, comments which are not comments….

  • 0

What language(s) have comments with side effects? In essence, comments which are not comments….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:57:46+00:00Added an answer on May 11, 2026 at 12:57 am

    I can think of several places where comments aren’t really comments.

    • HTML and script tags (providing support for browsers that don’t allow or support scripts).

    And then, considerably more obscurely:

    • IBM Informix 4GL (I4GL) and 4J’s Genero (successor to Informix Dynamic 4GL, D4GL). The notation ‘--#‘ was used by D4GL to include material only applicable to D4GL; I4GL would see that as a comment. The inverse notation was ‘--@‘, which looked like a comment to D4GL but was treated as active material by I4GL.

    And, even more obscurely:

    • I wrote an I4GL file which was dual-languaged, exploiting I4GL’s multiple comment facilities. Material starting ‘#‘ (hash) marked the start of a comment outside of strings – up to the next newline, as does ‘--‘ (double-dash). Also, ‘{...}‘ (braces) enclose multiline comments.
    • The top of the source file was actually a shell script, mostly enclosed in ‘{...}‘ which is, of course, perfectly legitimate in shell. The shell script was a data-driven code generator that copied itself to the top of the output, and then generated about 100 functions which were all depressingly similar but slightly different (in a language without templates or a pre-processor). The code had to validate what was in the database for a given ship against incoming data from an external source (Lloyds of London, in fact), to see what had changed since the last time the external data was received. Non-trivial comparison work, especially since it had to deal with database (SQL) nulls.
    • The file was not really a Quine program, but it had some points in common with it. In particular, you could feed the script broken I4GL code and the regenerated file would be perfect again, basically because it ignored the existing I4GL code.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have the following assembly language code which I need to convert into
Does the Java language have delegate features, similar to how C# has support for
I want to generate random numbers manually. I know that every language have the
I am using java language,I have a method that is supposed to return an
I have a language-agnostic question about an algorithm. This comes from a (probably simple)
This is a C# question, but really could be language-agnostic I have inherited a
I have recently learned the Ruby programming language, and all in all it is
I have an assignment in a language-independent class, and part of it is using
I have read about partial methods in the latest C# language specification , so
Anyone have any idea how to get the value of Language for Non-Unicode Programs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.