[haiku-bugs] Re: [Haiku] #9778: Cast to array context menu item

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Fri, 17 May 2013 20:15:49 -0000

#9778: Cast to array context menu item
-------------------------------------+----------------------------
   Reporter:  bonefish               |      Owner:  anevilyak
       Type:  enhancement            |     Status:  new
   Priority:  normal                 |  Milestone:  Unscheduled
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by anevilyak):

 I meant to indicate this earlier: one caveat to the above is that
 currently, the adjust ranges feature uses the type's indicated bounds as
 the upper/lower bound for what ranges the user is allowed to enter. Ergo,
 for an array type with 10 elements, the adjustable range would self limit
 to only accepting elements within indices 0-9. For the case where the
 actual number of elements is smaller, this is fine, but if the true size
 is larger it'd presently require actually using the full Cast As feature
 to specify the larger array dimension first.

 Furthermore, as a note to myself, the above range setting feature is
 currently actually not available for value nodes that have been cast to
 arrays, as those are set up as a pointer node with a hidden array type as
 a child. Since the top level node does not show up as an array type, the
 menu option isn't added. That needs to be addressed as well, though it
 will be relatively trivial to detect/compensate for.

--
Ticket URL: <http://dev.haiku-os.org/ticket/9778#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: