Recent

Author Topic: in - reserved word  (Read 3882 times)

anna

  • Sr. Member
  • ****
  • Posts: 426
in - reserved word
« on: August 01, 2010, 03:05:05 pm »
Some (I don't remember) old snapsots of Lazarus 0.9.29 added such construction inside project1.lpr file:

Code: [Select]
uses
...
  Unit2 in 'Unit2.pas',
...

But now if I add new Form, Lazarus adds next:
Code: [Select]
uses
...
  Unit2,
...

What's the difference? What this word in does?
Is adding in-word binding? Why do my projects work fine irrespective of using or non-using in-word?
« Last Edit: August 01, 2010, 03:07:09 pm by anna »
WinXP SP3 Pro Russian 32-bit (5.1.2600)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12326
  • FPC developer.
Re: in - reserved word
« Reply #1 on: August 01, 2010, 03:08:24 pm »
What's the difference? What this word in does?
Is adding in-word binding? Why my projects work fine irrespective of using or non-using in-word?

Because "in" is a Delphi "feature" that is needed by older Delphi's to find forms in the designer. Lazarus doesn't need it. Afaik modern (BDS) Delphi's also happily go without.

 

TinyPortal © 2005-2018