Questions tagged [anonymous]

DO NOT USE! Please use a more specific tag such as [anonymous-function] or [anonymous-class].

The term anonymous has come to represent different aspects of development with the rise of the functional programming style and the use of anonymous on-demand applications.

In an effort to disambiguate this tag, it has been split into the following subcategories:

Category Description
Anonymous Classes An anonymous class is a local class without a name. An anonymous class is defined and instantiated in a single succinct expression using the new operator.
Anonymous Functions Anonymous functions use a block of code as a value, defining it as an inline function without a name.
Anonymous Methods An anonymous method is a procedure or function that does not have a name associated with it.
Anonymous Types Anonymous types are data types which dynamically add a set of properties into a single object without having to first explicitly define a type
Anonymous Users Anonymous users are individuals or systems that make use of a product or service, without formally registering account details and are instead associated with some token or identifier.

Former Tag Definition

For new questions, see [anonymous-class] and [anonymous-function].

Typically, a programming language construct like a function or class has a name associated with it -- a symbol that can be used to refer to the construct in some context. An anonymous function or class is one that, in contrast to normal practice, has no name. For example, in Java, you can create an anonymous class using a special syntax that defines a class and constructs an instance of it at the same time:

Runnable r = new Runnable() {
    public void run() {
        System.out.println("Running");
    }
};

The variable r holds a reference to an instance of a class which has no name in Java, but which implements the Runnable interface and can be used anywhere a Runnable instance is needed.

702 questions
0
votes
1 answer

Anonymous Functions and Variable Scope

I was reading an article about requestAnimationFrame here, and I realized that I was having trouble following the scope and persistence of a variable. Slightly modified code below: (function() { //Note: lastTime is defined up here. var…
Rstevoa
  • 271
  • 4
  • 17
0
votes
1 answer

MVC LinQ IQueryable Anonymous type handling

At first, I have a variable in my controller to store linq query result as shown below: var test= from m in db.testTable join n in db.testTable2 on m.ID equals n.ID into tabA from a in tabA join o in…
SuicideSheep
  • 5,260
  • 19
  • 64
  • 117
0
votes
1 answer

Spring Security all rolles except anonymous

hi i have an spring security application
wutzebaer
  • 14,365
  • 19
  • 99
  • 170
0
votes
0 answers

Time stamping (anonymous access)

Boys and girls Greetings! I need your help in TSA (time stamping authority). The problem is that the company which is expected to work according to RFC 3161 does not work perfectly after that. The problem with anonymous access because the access…
0
votes
5 answers

C# - Determine property type at runtime

Here is what I want to do: public [type determined at runtime] ImageToShow { get { if(this.IsWebContext) { return this.GetString(); } else { return this.GetBitmap(); } } } At first look it seems simple…
codelove
  • 1,396
  • 3
  • 17
  • 35
0
votes
1 answer

Anonymous class creation can not be evaluated. Java Design Eclipse

When I want to open the Design tab in Eclipse, I get this error: Anonymous class creation can not be evaluated. In general case it is impossible to evaluate creation of anonymous class. So, expression ... new AbstractFormatterFactory() { …
Agustín
  • 1,546
  • 7
  • 22
  • 41
0
votes
1 answer

Anonymous users publishing my site with blank content

Several times a day Anonymous users create content and publish it on my drupal site. The content is blank, not even clickable. I have my login page redirect to my ldap login so users can't even create accounts in the first place. Do you know how i…
user2453757
0
votes
2 answers

how to call anonymous delegate dynamically

I hava a delegate public delegate void Context(); And i had implemented it by anonymous method, public Context fakeHttpContext = () => { ... create fake http context. }; I dont' want to execute the…
user192415
  • 541
  • 1
  • 6
  • 13
0
votes
3 answers

401 Error - Unauthorized Access when copying files to a shared directory in IIS

A colleague created an IIS Application using IIS 7.5. They then shared the directory to my user account. When I copy files to that directory (\server\myWebsite), I get a 401 error (Unauthorized access) when trying to access the page. We set up the…
Michael Rut
  • 1,027
  • 1
  • 11
  • 19
0
votes
1 answer

Weird Javascript Anonymous function under Google Chrome

Above is the HTML code,and I add an event to the button with the above Javascript code: