• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Error in Swift code in Playground
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error in Swift code in Playground


  • Subject: Error in Swift code in Playground
  • From: Peter Hudson <email@hidden>
  • Date: Mon, 22 May 2017 16:48:35 +0100

Hi All

When I setup this very simple piece of code in a Playground I get the following error   

__lldb_expr_53.Custom3DPoint


struct Custom3DPoint {

    

    var x: Int
    var y:  Int
    var z:  Int
    var origin: String
}

let somePoint = Custom3DPoint(x: 0, y: 0, z: 0, origin: “LUTON")

print(somePoint)


Printing the point produces exacly what I would expect to see.

Can anybody tell me how to get rid of this error ?

Thanks in advance.

Peter

Recent MBP, macOS 10.12.3  xCode 8.3

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Error in Swift code in Playground
      • From: Quincey Morris <email@hidden>
    • Re: Error in Swift code in Playground
      • From: Michael Bauer <email@hidden>
  • Prev by Date: Compiler flags for variable names
  • Next by Date: Re: Error in Swift code in Playground
  • Previous by thread: Compiler flags for variable names
  • Next by thread: Re: Error in Swift code in Playground
  • Index(es):
    • Date
    • Thread