Re: Why no schema alias?
"Prof A Olowofoyeku (The African Chief)" <[email protected]>
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Organization | ChiefSoft |
| Message-ID | <[email protected]> |
On 13 Aug 2012 at 10:31, Jay Michael wrote: > 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. Const Len = 1024; Type LString = String (Len); Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/ _______________________________________________ Gpc mailing list [email protected] https://www.g-n-u.de/mailman/listinfo/gpc