Skip to content
CAMP
LearnInstallGitHub

Docs

Language Guide
  • 1. Welcome
  • 2. Your First Program
  • 3. Declarations
  • 4. Everyday Types
  • 5. Structs And Classes
  • 6. Functions And Callables
  • 7. Lifetimes And Allocation
  • 8. Pointers And Conversion
  • 9. Errors And Cleanup
  • 10. Names And Symbols
  • 11. Enums And Newtypes
  • 12. Interfaces
  • 13. Generics
  • 14. Iterators
  • 15. Async And Await
  • 16. Standard Library
  • 17. Native Interop
  • 18. Expressions Reference
  • 19. Attributes And Metadata
Compiler Guide
  • 1. campc Command Line
  • 2. Build Files And Pragmas
  • 3. Package Management (Experimental)
  • 4. Targets And Native Builds
  • 5. Artifacts, Cache, And Output Layout
  • 6. Metadata JSON
  • 7. Dumps, Diagnostics, And Introspection
  • 8. Language Server And Editor Tooling
  • 9. Standard Library Build Integration
  • 10. Debug Adapter And VS Code Debugging
Standard Library API
  • Overview
  • Classes
    • Console
    • HashMap<K, V>
    • HashSet<K>
    • HeapAllocator
    • List<T>
  • Structs
    • Assertion
    • Date
    • DateTime
    • FileOptions
    • HashPolicy<K>
    • OffsetDateTime
    • TimeOfDay
  • Interfaces
    • Allocator
  • Enums
    • FileAccess
    • FileMode
    • IoError
    • Weekday
  • Newtypes
    • ACharReader
    • ACharWriter
    • ByteReader
    • ByteWriter
    • CharFormatter
    • CharReader
    • CharWriter
    • FileHandle
    • Instant
    • TimerHandle
    • TimeSpan
    • UtcOffset
    • WCharReader
    • WCharWriter
  • Functions
    • Constants
      Package APIs
      • Overview
      IoError
      Language Guide1. Welcome2. Your First Program3. Declarations4. Everyday Types5. Structs And Classes6. Functions And Callables7. Lifetimes And Allocation8. Pointers And Conversion9. Errors And Cleanup10. Names And Symbols11. Enums And Newtypes12. Interfaces13. Generics14. Iterators15. Async And Await16. Standard Library17. Native Interop18. Expressions Reference19. Attributes And Metadata
      Compiler Guide1. campc Command Line2. Build Files And Pragmas3. Package Management (Experimental)4. Targets And Native Builds5. Artifacts, Cache, And Output Layout6. Metadata JSON7. Dumps, Diagnostics, And Introspection8. Language Server And Editor Tooling9. Standard Library Build Integration10. Debug Adapter And VS Code Debugging
      Standard Library APIOverviewClassesConsoleHashMap<K, V>HashSet<K>HeapAllocatorList<T>StructsAssertionDateDateTimeFileOptionsHashPolicy<K>OffsetDateTimeTimeOfDayInterfacesAllocatorEnumsFileAccessFileModeIoErrorWeekdayNewtypesACharReaderACharWriterByteReaderByteWriterCharFormatterCharReaderCharWriterFileHandleInstantTimerHandleTimeSpanUtcOffsetWCharReaderWCharWriterFunctionsConstants
      Package APIsOverview

      IoError

      enum IoError

      Values

      OK = 0
      UNKNOWN = 1
      INVALID_ARGUMENT = 2
      NOT_SUPPORTED = 3
      NOT_FOUND = 4
      ALREADY_EXISTS = 5
      PERMISSION_DENIED = 6
      BUSY = 7
      INTERRUPTED = 8
      WOULD_BLOCK = 9
      TOO_MANY_OPEN_FILES = 10
      PATH_TOO_LONG = 11
      NO_SPACE = 12
      READ_ONLY = 13
      IS_DIRECTORY = 14
      NOT_DIRECTORY = 15
      DIRECTORY_NOT_EMPTY = 16
      BROKEN_PIPE = 17
      IO = 18
      NO_MEMORY = 19
      TIMEOUT = 20

      Generated with campc v0.4.0-preview.1+d50446ef951a6ed675f7086cf093dbc993f0041b.

      Camp is a modern native programming language with durable foundations.

      Language GuideCompiler GuideCompiler Source