Board index » delphi » What's wrong with this unit?
Patrick D. Rockwell
![]() Delphi Developer |
Thu, 22 Apr 2004 12:02:43 GMT
What's wrong with this unit?
What's wrong with this unit? I seem to have every part right except the
initialization part. When I try to compile it, the pascal compiler tells me that I should have an END statement where the word initialization occurs. Also, I notice that when I type my code in the editor, the words interface and implementation are white, but the word initialization is yellow, just like any other code. The reason that I wrote this unit is so that I'd have an example of a unit with ALL of its parts. Isn't there supposed to be an initialization header, or am I wrong? Could some kind soul please show me what I did wrong? TIA. --------------------------------------------------------------------------- unit myunit; interface type mat = array[1..5] of real; implementation function determin(mtx:mat):real; initialization j:=35; -- |