Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-07

Re: Purpose of "uses ... in"?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Schindler Karl-Michael
Show quoted text 29 lines
Marco van de Voort wrote on Mon, 12 Jul 2010: > In our previous episode, Hans-Peter Diettrich said: >> >> Then we could start by immediately flagging all uses of "in" as >> deprecated, unless e.g. TP7 or Delphi mode is selected. When the users >> can demonstrate that they still need such a feature, we could think >> again about other (more compatible) solutions for not yet covered >> special cases, before dropping it from the FPC syntax. > > See http://www.stack.nl/~marcov/porting.pdf paragraph 7 ("avoid paths...") > > I originally wrote that in 2003-2004. > > Even for portability purposes it often doesn't work, since usually the build > systems and files for FPC/Lazarus and Delphi differ anyway (and you noticed > the working dir difference) The working dir difference is a Lazarus difference, not an FPC difference. Afaict, that feature works identically in FPC and in Delphi. Furthermore, at least two of "the users" have already posted in this thread saying that they use this functionality (both in FPC and in Delphi). Therefore I don't think it is a good idea to remove or change it. If different functionality is desired, I think it's better to add a different construct rather than using the same construct but with a different meaning.

When checking, I found that it is used for all files in UltraStar Deluxe. I was not aware that this part of the code is problematic also have no idea about the actual reason. Maybe relates to compiling with Delphi. In any case I would definitely hate to have the code broken. Nevertheless, I will raise the topic.

P.S. This will probably end up in the wrong thread, because I answer to the dictionary. At least it did in the past. Any hints?

Michael

Reply by email

Marco van de Voort
to Schindler Karl-Michael

In our previous episode, Schindler Karl-Michael said:

Show quoted text 9 lines
> thread saying that they use this functionality (both in FPC and in > Delphi). Therefore I don't think it is a good idea to remove or change > it. > > If different functionality is desired, I think it's better to add a > different construct rather than using the same construct but with a > different meaning. When checking, I found that it is used for all files in UltraStar Deluxe.

With or without paths? IOW does it only change casing? Then it might not be that bad. (though it doesn't deserve a beauty price either).

Probably that is because of Kylix, that doesn't have FPC's "in case of doubt, just lowercase all filenames" escape, resulting in the need to micromanage it manually using IN.

Reply by email