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 , 16 years ago
| Status: | new → accepted |
|---|
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.

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