GO-V.ORG
As seen in

Discriminator

In computing, a discriminator is a field of characters designed to separate a certain element from others of the same identifier.[src] As an example, suppose that a program must save two unique objects to memory, both of whose identifiers happen to be .[src] To ensure the two objects are not conflated, the program may assign discriminators to the objects in the form of numbers; thus, and distinguish both objects named .[src] This has been adopted by programming languages as well as digital platforms for instant messaging and massively multiplayer online games.[src]

In computing, a discriminator is a field of characters designed to separate a certain element from others of the same identifier.[src] As an example, suppose that a program must save two unique objects to memory, both of whose identifiers happen to be .[src] To ensure the two objects are not conflated, the program may assign discriminators to the objects in the form of numbers; thus, and distinguish both objects named .[src] This has been adopted by programming languages as well as digital platforms for instant messaging and massively multiplayer online games.[src] union Register switch (char) { case 'a': case 'b': short AX; case 'c': long EAX; default: octet AL; }; The effective value of the Register type may contain AX as the selected field, but the discriminator value may be either 'a' or 'b' and is stored in memory separately.[src] Therefore, IDL logically separates information about the currently selected field name and the union effective value from information about the current discriminator value.[src] In the example above, the discriminator value may be any of the following: 'a', 'b', 'c', as well as all other characters belonging to the IDL char type, since the default branch specified in the example Register type allows the use of the remaining characters as well.[src] { "$type": "book", "title": "Do Androids Dream of Electric Sheep?", "author": "Philip K.[src] Dick" } A serialization of a movie.[src] { "$type": "movie", "title": "Titanic", "director": "James Cameron" } Both data serializations share a common field here named "$type" which serves as the type discriminator.[src] The book have the book-specific field "author", while the movie have the movie-specific field "director".[src] This facilitates the deserialization of data to different classes depending on the value of the type discriminator.[src] ==References==[src]

17 sentences · 17 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Discriminator." encyclopegia.org, 2026, https://encyclopegia.org/wiki/discriminator. Accessed 04 December 2026.

Chicago

"Discriminator." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/discriminator.

APA

encyclopegia.org. (2026). Discriminator. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/discriminator

Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1332286315 · 0.55 · snapshot discriminator-601690-15e5fea50b8cfb51 · QID Q5282088

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.