13 Aug
2012
13 Aug
'12
7:31 p.m.
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.
5131
Age (days ago)
5140
Last active (days ago)
3 comments
3 participants
participants (3)
-
Jay Michael -
Prof A Olowofoyeku (The African Chief) -
Waldek Hebisch