[sv-bc] Second arg to array query function

From: Paul Graham <pgraham@cadence.com>
Date: Mon Oct 18 2004 - 09:41:10 PDT

Why is the second argument to an array query function optional if the
first argument is a type identifier, but not if it is an array
identifier? Why not make it optional (defaulting to 1) in both cases?

    array_query_function ::=
          array_dimension_function ( array_identifier , dimension_expression )
        | array_dimension_function ( type_identifier [ , dimension_expression ] )
        ...

    my_array_type A;

    $left(my_array_type) // legal
    $left(A) // not legal ??

Paul
Received on Mon Oct 18 09:41:13 2004

This archive was generated by hypermail 2.1.8 : Mon Oct 18 2004 - 09:41:22 PDT