version 1.2, 2003/04/19 15:44:59 |
version 1.4, 2003/12/18 10:26:20 |
|
|
@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/structure.texi,v 1.1 2000/09/25 06:25:11 noro Exp $ |
@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/structure.texi,v 1.3 2003/11/27 15:56:08 ohara Exp $ |
\BJP |
\BJP |
@node $B9=B$BN(B,,, $BAH$_9~$_H!?t(B |
@node $B9=B$BN(B,,, $BAH$_9~$_H!?t(B |
@section $B9=B$BN(B |
@section $B9=B$BN(B |
|
|
@menu |
@menu |
* newstruct:: |
* newstruct:: |
* arfreg:: |
* arfreg:: |
|
* struct_type:: |
@end menu |
@end menu |
|
|
\JP @node newstruct,,, $B9=B$BN(B |
\JP @node newstruct,,, $B9=B$BN(B |
Line 109 by @code{->} can be nested. |
|
Line 110 by @code{->} can be nested. |
|
This function registers a set of fundamental operations for a type |
This function registers a set of fundamental operations for a type |
of structure whose name is @var{name}. |
of structure whose name is @var{name}. |
\E |
\E |
|
\BJP |
@item |
@item |
|
$BEPO?$7$?$/$J$$4pK\1i;;$KBP$7$F$O0z?t$K(B 0 $B$rM?$($k(B. |
|
$B$3$l$K$h$C$F0lIt$N1i;;$N$_$rMxMQ$9$k$3$H$,$G$-$k(B. |
|
\E |
|
@item |
\JP $B$=$l$>$l$N4X?t$N;EMM$O<!$NDL$j$G$"$k(B. |
\JP $B$=$l$>$l$N4X?t$N;EMM$O<!$NDL$j$G$"$k(B. |
\EG The specification of each function is as follows. |
\EG The specification of each function is as follows. |
@table @code |
@table @code |
Line 203 Copyright (C) FUJITSU LABORATORIES LIMITED. |
|
Line 209 Copyright (C) FUJITSU LABORATORIES LIMITED. |
|
4 |
4 |
[15] A*B; |
[15] A*B; |
@{0,12@} |
@{0,12@} |
|
@end example |
|
|
|
@table @t |
|
\JP @item $B;2>H(B |
|
\EG @item References |
|
@fref{newstruct}, |
|
\JP @fref{$B9=B$BNDj5A(B} |
|
\EG @fref{structure definition} |
|
@end table |
|
|
|
\JP @node struct_type,,, $B9=B$BN(B |
|
\EG @node struct_type,,, Structures |
|
@subsection @code{struct_type} |
|
@findex struct_type |
|
|
|
@table @t |
|
@item struct_type(@var{name}|@var{object}) |
|
\JP :: $B9=B$BN$N<1JLHV9f$r<hF@$9$k(B. |
|
\EG :: Get an identity number of the structure of @var{object} and @var{name}. |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
\JP $B@0?t(B |
|
\EG an integer |
|
@item name |
|
\JP $BJ8;zNs(B |
|
\EG string |
|
@item object |
|
\JP $B9=B$BN(B |
|
\EG a structure |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
\BJP |
|
$BL>A0$,(B @var{name} $B$G$"$k9=B$BN(B, $B$^$?$O(B @var{object} $B$N;X$99=B$BN$N<1JLHV9f$r<hF@$9$k(B. $B%(%i!<$N$H$-$O(B -1 $B$rJV$9(B. |
|
\E |
|
\BEG |
|
@code{struct_type()} returns an identity number of the structure or -1 (if an error occurs). |
|
\E |
|
@end itemize |
|
|
|
@example |
|
[10] struct list @{h,t@}; |
|
0 |
|
[11] A=newstruct(list); |
|
@{0,0@} |
|
[12] struct_type(A); |
|
3 |
|
[13] struct_type("list"); |
|
3 |
@end example |
@end example |
|
|
@table @t |
@table @t |