• 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: Viewing A Pointer As An Array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Viewing A Pointer As An Array


  • Subject: Re: Viewing A Pointer As An Array
  • From: "Sherm Pendley" <email@hidden>
  • Date: Thu, 22 May 2008 16:16:42 -0400

Stray '@" in *program*? Did you enter these expressions into the debugger console, or your source code?

sherm--

On Thu, May 22, 2008 at 3:56 PM, Boyd Collier <email@hidden> wrote:
I'm a little obtuse (okay, more than a little). When I try what you suggested, I get a fatal error message saying "error: stray'@' in program."   Could you provide an expanded example?

Boyd


On May 16, 2008, at 11:30 AM, Rick Sustek wrote:

Yes indeed:

create a new _expression_, using the var@len syntax, examples:

For an integer array named foo:

*(int *)foo@256


For a float array named rootBeer:

*(float *)rootBeer@64



This will expand in the expressions window, with a disclosure triangle so you can collapse it, if desired. The length is simply however many you want to display -- even beyond the actual array bounds if you use a number that is larger than the array depth.


Happy, happy, joy, joy,
-Rick

_______________________________________________
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


_______________________________________________
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



--
Cocoa programming in Perl: http://camelbones.sourceforge.net
 _______________________________________________
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: Viewing A Pointer As An Array
      • From: Boyd Collier <email@hidden>
References: 
 >Viewing A Pointer As An Array (From: Nick Nallick <email@hidden>)
 >Re: Viewing A Pointer As An Array (From: Rick Sustek <email@hidden>)
 >Re: Viewing A Pointer As An Array (From: Boyd Collier <email@hidden>)

  • Prev by Date: Re: PPC/Intel difference for out-of-range double -> int conversion
  • Next by Date: Re: PPC/Intel difference for out-of-range double -> int conversion
  • Previous by thread: Re: Viewing A Pointer As An Array
  • Next by thread: Re: Viewing A Pointer As An Array
  • Index(es):
    • Date
    • Thread