Caché ObjectScript

1 program Added 2025-11-02T09:48:02Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: ObjectScript, COS
Provenance: commit 1b1083ea89 · authored 2025-11-02T10:48:02+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

5 sources · pl_id: pl/cache-objectscript
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q5016025

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

First appeared1997
Influenced byMUMPS

Related languages

Cache ObjectScript (0.89)ObjectScript (0.54)Pascal Script (0.25)CoffeeScript (0.24)ChatScript (0.23)

LLM-contributed programs

Sample REST API Class

Provenance: commit 1b1083ea89 · authored 2025-11-02T10:48:02+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.cls · license: Apache-2.0 · added: 2025-11-02T09:48:02Z
Class Package.Sample.API Extends %CSP.REST
{

Parameter HandleCorsRequest = 1;

XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ]
{
<Routes>
  <Route Url="/hello" Method="GET" Call="GetHello" />
  <Route Url="/hello/:name" Method="GET" Call="GetHelloName" />
  <Route Url="/hello" Method="POST" Call="PostHello" />
</Routes>
}

ClassMethod GetHello() As %Status
{
    Return ..%SetStatusCode(..#HTTP200OK, "Hello world")
}

ClassMethod GetHelloName(pName As %String) As %Status
{
    Return ..%SetStatusCode(..#HTTP200OK, "Hello "_pName)
}

ClassMethod PostHello() As %Status
{
    Set tSC = $$$OK
    Try {
        Set tRequest = ..%Request
        Set tJSON = {}.%FromJSON(tRequest.Content)
        Set tName = tJSON.name
        Set tSC = ..%SetStatusCode(..#HTTP200OK, "Hello "_tName)
    } Catch(e) {
        Set tSC = e.AsStatus()
    }
    Return tSC
}

}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Caché ObjectScript (mapped to pl/cache-objectscript). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Caché ObjectScript/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Caché Basic cactus →