Skip to content

Instantly share code, notes, and snippets.

@capnslipp
Last active July 23, 2016 00:32
Show Gist options
  • Select an option

  • Save capnslipp/c166e3fb51112f0c6551d5ea3626b2bb to your computer and use it in GitHub Desktop.

Select an option

Save capnslipp/c166e3fb51112f0c6551d5ea3626b2bb to your computer and use it in GitHub Desktop.

Revisions

  1. capnslipp revised this gist Jul 23, 2016. No changes.
  2. capnslipp revised this gist Jul 23, 2016. 2 changed files with 5 additions and 5 deletions.
    5 changes: 5 additions & 0 deletions GlobalsStruct.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    public struct GlobalsStruct {
    public static let aValue = 5

    private init() {}
    }
    5 changes: 0 additions & 5 deletions gistfile1.swift → MyPlayground.swift
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,6 @@
    import Foundation


    struct GlobalsStruct {
    static let aValue = 5

    private init() {}
    }

    let gs = GlobalsStruct()
    print(gs)
  3. capnslipp renamed this gist Jun 26, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. capnslipp created this gist Jun 26, 2016.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    import Foundation


    struct GlobalsStruct {
    static let aValue = 5

    private init() {}
    }

    let gs = GlobalsStruct()
    print(gs)

    print(GlobalsStruct.aValue)
    print(gs.dynamicType.aValue)