"Recursive build"

Post your requests and ideas on the future development of mikroPascal PRO for PIC32.
Post Reply
Author
Message
LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

"Recursive build"

#1 Post by LGR » 30 Nov 2012 22:31

The compiler objects to accessing procedures from unit "A" from unit "B", and at the same time, accessing other, unrelated procedures in unit "B" from unit "A". The error message is "recursive build is not allowed". This is a nuisance. Sometimes you have different hardware access libraries in different units, and it's most effective to organize things this way. There's nothing recursive about it; you sometimes simply need to access one of the procedures from "A in "B", and in a different procedure in "B", need to access an unrelated procedure in "A". It should be possible to have cross references in the uses clause, without referring to anything recursively.
If you know what you're doing, you're not learning anything.

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

Re: "Recursive build"

#2 Post by Dany » 01 Dec 2012 11:35

LGR wrote:The compiler objects to accessing procedures from unit "A" from unit "B", and at the same time, accessing other, unrelated procedures in unit "B" from unit "A". The error message is "recursive build is not allowed". This is a nuisance. Sometimes you have different hardware access libraries in different units, and it's most effective to organize things this way. There's nothing recursive about it; you sometimes simply need to access one of the procedures from "A in "B", and in a different procedure in "B", need to access an unrelated procedure in "A". It should be possible to have cross references in the uses clause, without referring to anything recursively.
True.
You can circumvent this by using "external" declarations, see http://www.rosseeld.be/DRO/PIC/Make_Process.pdf, section "External References".
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)

LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

Re: "Recursive build"

#3 Post by LGR » 01 Dec 2012 17:36

Thank you. That document is excellent.
If you know what you're doing, you're not learning anything.

Post Reply

Return to “mikroPascal PRO for PIC32 Wish List”