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

  • SEARCH
  • Home
  • 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 717681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:26:26+00:00 2026-05-14T05:26:26+00:00

I read in an ebook somewhere (which I’m desperate to find again), that, by

  • 0

I read in an ebook somewhere (which I’m desperate to find again), that, by using delegates, it is possible to write code which has syntax as follows:

 ()(); // where delegate precedes this.

Can anyone provide any details how this would be possible/in what situation this would occur?

  • 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. Editorial Team
    Editorial Team
    2026-05-14T05:26:27+00:00Added an answer on May 14, 2026 at 5:26 am

    You can do slightly better than the examples given so far, in fact… you can extend it arbitrarily:

    class Test
    {
        delegate Hofstadter Hofstadter();
    
        static void Main()
        {
            // Unfortunately I'm clearly not as smart as the real thing
            Hofstadter douglas = () => null;
    
            douglas()()()()()()();
        }
    }
    

    And here’s another horrible alternative, for extra ASCII art:

    class Test
    {
        delegate __ ___();
        delegate ___ __(___ _);
    
        static void Main()
        {
            ___ _ = () => null;
    
            _ ()((_))();
        }
    }
    

    Please never ever, ever do this.

    EDIT: One last one – although it’s as much about just replacing things with underscores as anything else, and reusing names wherever possible:

    class Test
    {
        delegate void _();
        delegate __<_> ___<_>();
        delegate ___<_> __<_>(___<_> ____);
    
        static ___<_> ____<_>(___<_> ____) { return ____; }
        static __<_> ____<_>() { return ____<_>; }
    
        static void Main()
        {
            ((__<_>)____)(____<_>)();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Read that the following code is an example of unsafe construction as it allows
I want to create an eBook that can be read in an android phone.
My goal is to create an eBook that I can read with the Mobipocket
I have a file that I want to read and write to a binary
Read the edit below for more information. I have some code below that I
I have an ebook style iPhone app that allows users to read a book.
Is it possible to serve a read-only pdf file to multiple computers in a
Read this question today about safe and unsafe code I then read about it
read, write, error = select.select(sockets, sockets, sockets, 60.0) What is recommended if something ends
I have read this tutorials it's an ebook and I'm stuck at deploying the

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.