On Sunday 30 March 2008 18.08:24 Michael Van Canneyt wrote: > On Sun, 30 Mar 2008, C Western wrote:
> > Things now seem to work for me after a little adjustment. I don't know if > > it is intentional, but the order in which references are satisfied seems > > to have been reversed in the current version, which revealed a minor > > error in my code. I suspect I won't be the only one, so it might be kind > > to reverse the list to avoid similar problems. > > Nono, it's good that you fixed your bug. > > You should never rely on the loading order. For forms, for instance, it is > dependent on the creation in the IDE. A simple cut and paste could change > the order. Relying on this would be bad practice. > I'd like to second Colins wish. Please use the same resolving order as Delphi. MSEide+MSEgui compiles with Delphi7 so the reversed order is an unnecessary complication and error source. > > The other thing that struck me is that unsatisfied references do not > > throw an error - shouldn't they? (It would have made fixing the error a > > little easier) How about the following patch: > > Delphi doesn't throw an error either, and it should definitely not do so at > the end of local reference resolving; At most this could be done after all > loading is done, and you don't know when that is: forms can be created at > any time... > Agreed. Thanks, Martin _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel