Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

WindowsEnvironmentError

Identifies explicit native Windows environment lookup failure. Unsupported hosts never substitute approximate case folding. Values own no native pointers or operating-system state. Absence is a successful optional result, not an error.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

Module std.process

import std.process;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

WindowsEnvironmentError

pub enum WindowsEnvironmentError

Identifies explicit native Windows environment lookup failure. Unsupported hosts never substitute approximate case folding. Values own no native pointers or operating-system state. Absence is a successful optional result, not an error.

WindowsEnvironmentError.InvalidName

InvalidName;

Empty or malformed native key.

WindowsEnvironmentError.EmbeddedNul

EmbeddedNul;

Embedded native zero unit.

WindowsEnvironmentError.CapacityExceeded

CapacityExceeded;

Name exceeds the native comparison domain.

WindowsEnvironmentError.Unsupported

Unsupported;

Native Windows comparison is unavailable.

WindowsEnvironmentError.NativeFailure

NativeFailure;

Native comparison failed or returned malformed transport.

WindowsEnvironmentError.OutOfMemory

OutOfMemory;

Native comparison operand allocation failed.

WindowsEnvironmentError.MixedRepresentation

MixedRepresentation;

Lookup requires native UTF-16 name and entry representation.

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library