Why no schema alias?
Jay Michael <[email protected]>
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <[email protected]> |
type LSTRING = STRING ;
t3.pas:8: warning: missing string capacity -- assuming 255
Is there some other syntax to creating an alias of a schema type?
On a related note, when I tried
type LSTRING( Capacity : INTEGER ) = STRING( Capacity ) ;
I got
t3.pas:9: error: duplicate field `Capacity'
on the attempted type declaration, and again each time I used the
new type name.
I tried "STRING( LSTRING.Capacity )" and "STRING( .Capacity )".
No improvement.
type LSTRING( N : INTEGER ) = STRING( N ) ;
compiled, and worked almost as well as a true alias. It wouldn't
let me pass a string literal as the actual argument to a
"const x : LSTRING" parameter.
_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc