Code Explorer and "forward"

Post your requests and ideas on the future development of mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Code Explorer and "forward"

#1 Post by JimKueneman » 20 Feb 2010 04:23

When you have procedure defined as "forward" and you use Code Explorer and double click on the procedure it only goes to the forward definition. Can you make it so if the cursor is at the forward another double click takes you to the procedure body?

Jim Kueneman

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: Code Explorer and "forward"

#2 Post by tihomir.losic » 22 Feb 2010 14:39

Hello,

A function can be declared without having it followed by it's implementation, by having it followed by the forward procedure.
The effective implementation of that function must follow later in the unit. The function can be used after a forward declaration as if it had been implemented
already. So, it's not recommended to use "forward" as name of your procedure.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Re: Code Explorer and "forward"

#3 Post by JimKueneman » 26 Feb 2010 20:26

Sorry, it was a bit unclear the way I worded my comment:

Code: Select all

procedure Foo; forward

......

// in body of unit

procedure Foo;
begin
  // do someting
end;
When you click Foo in the Code Explorer it goes to the

Code: Select all

procedure Foo; forward
I would like the IDE to be smart enough that if I select Foo in the Code Explorer it goes to the body

Code: Select all

procedure Foo;
begin
  // do someting
end;
A possible logic implementation is if you click it in the Code Explorer and the IDE sees the cursor at the

Code: Select all

procedure Foo; forward
block it then will put the cursor at the

Code: Select all

procedure Foo;
begin
  // do someting
end;
block and if it is at the

Code: Select all

procedure Foo;
begin
  // do someting
end;
it jumps to the

Code: Select all

procedure Foo; forward
block

Jim

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: Code Explorer and "forward"

#4 Post by tihomir.losic » 01 Mar 2010 17:32

Hello Jim,

thank you for your suggestion.
I will pass it to our developers, in order to consider it.

Best, regards,

Losic Tihomir
mikroElektronika [Support team]

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 Wish List”