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
  • Arrays
    • Collections
      • Date/Time
        • Diagnostics
          • I/O
            • Memory
              • Primitives
                • Strings
                  • Synchronization
                    Package APIs
                    • Overview
                    long
                    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 APIArraysCollectionsDate/TimeDiagnosticsI/OMemoryPrimitivesStringsSynchronization
                    Package APIsOverview

                    long

                    Back to Primitives

                    Signed 64-bit integer.

                    Instance members

                    nuint
                    hashcode(in long this)

                    Returns a hash code for a long.

                    bool
                    hashEquals(in long this, in long other)

                    Returns true when two long keys are equal.

                    prep char[]
                    toString(in long this)

                    Static members

                    const HashPolicy<long>
                    HASH_POLICY

                    Standard hash policy for long.

                    inline long
                    MAX = 9223372036854775807
                    inline long
                    MIN = -9223372036854775808

                    Generated with campc v0.8.0-preview.1+4df4cd2858d46c717d136ff5c571742dc449f642.

                    Camp is a modern native programming language with durable foundations.

                    Language GuideCompiler GuideCompiler Source