• 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
Re: Error in Swift code in Playground
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in Swift code in Playground


  • Subject: Re: Error in Swift code in Playground
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 22 May 2017 10:28:57 -0700

On May 22, 2017, at 08:48 , Peter Hudson <email@hidden> wrote:

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

__lldb_expr_53.Custom3DPoint

The “wrong” kind of quote was just an artifact of pasting into Mail. When I pasted that code into a playground, the compiler politely told me it was the wrong kind of quote, and offered to fix it for me.

The original code, also pasted into a playground on 8.3.2, works just fine.

The log pane (at the bottom) shows the result of printing the struct:

Custom3DPoint(x: 0, y: 0, z: 0, origin: "LUTON”)


The results pane (at the right) shows the result of the “let” statement as:

__lldb_expr_53.Custom3DPoint

which is just the debugger’s name for the struct. Clicking on either of the “reveal” icons at the far right of that icon reveals the components of the struct.


 _______________________________________________
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>
References: 
 >Error in Swift code in Playground (From: Peter Hudson <email@hidden>)

  • Prev by Date: Re: Error in Swift code in Playground
  • Next by Date: Re: Error in Swift code in Playground
  • Previous by thread: Re: Error in Swift code in Playground
  • Next by thread: Re: Error in Swift code in Playground
  • Index(es):
    • Date
    • Thread