[Fixed]v1.40: Type declaration after record declaration

Beta Testing discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

[Fixed]v1.40: Type declaration after record declaration

#1 Post by Dany » 03 May 2009 21:07

Fixed in bèta v1.50 :D

Hi,

This compiles without problems:

Code: Select all

type TBufferDescriptor =
     record
       Status: byte;
       ByteCount: byte;
       Address: word;
     end;     
type PBufferDescriptor = ^TBufferDescriptor;
but the following gives an error:

Code: Select all

type TBufferDescriptor =
     record
       Status: byte;
       ByteCount: byte;
       Address: word;
     end;     
     PBufferDescriptor = ^TBufferDescriptor; // <--- "Type" left out
Last edited by Dany on 13 May 2009 14:44, edited 3 times in total.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: v1.40: Type declaration after record declaration

#2 Post by srdjan » 05 May 2009 10:27

Hi,
Dany wrote:Hi,

This compiles without problems:

Code: Select all

type TBufferDescriptor =
     record
       Status: byte;
       ByteCount: byte;
       Address: word;
     end;     
type PBufferDescriptor = ^TBufferDescriptor;
but the following gives an error:

Code: Select all

type TBufferDescriptor =
     record
       Status: byte;
       ByteCount: byte;
       Address: word;
     end;     
     PBufferDescriptor = ^TBufferDescriptor; // <--- "Type" left out
Fixed. Thanks.

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#3 Post by Dany » 05 May 2009 11:58

Thanks Srdjan! :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Post Reply

Return to “mikroPascal PRO for PIC Beta Testing”