Opened 16 years ago

Closed 16 years ago

#146 closed enhancement (fixed)

add to front-end: e[i]

Reported by: Stephen Siegel Owned by: ywei
Priority: major Milestone:
Component: front Version: 1.0
Keywords: Cc:

Description

Add to MiniMP language the following construct:

e[i]

where e is an expression of pointer-type, and i is an expression. This should be translated to

*((e)+(i))

i.e. to DereferenceExpression(PointerAdditionExpression(e, i))

Change History (2)

comment:1 by ywei, 16 years ago

Status: newaccepted

comment:2 by ywei, 16 years ago

Resolution: fixed
Status: acceptedclosed

Modification made. Now users can use the same way as array subscript expression to dereference pointers.

Note: See TracTickets for help on using tickets.