Re: [fpc-pascal] detect the version of fpc that a feature added to it

2012-01-20 Thread Graeme Geldenhuys
On 19 January 2012 21:17, ik idokan@ wrote:

 I was looking to understand in what version of FPC ($IF defined ... } was
 added, and realized that it is not very simple to detect such information.

If you use a git clone of the FPC repository, you can very easily and
quickly (seconds rather than hours) search the commit history and or
the patch details (actual code that changed).

eg:

  git log -Stext

That will search the actual changed source code / patch details for text.

  git log --grep=text

That will search the commit message/log for text.

Both these commands execute very fast. Indecently, that is how I found
in which Lazarus version certain features were implemented (as can be
seen in the New_IDE_features_since wiki page for Lazarus).


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] detect the version of fpc that a feature added to it

2012-01-19 Thread ik
Hello,

I was looking to understand in what version of FPC ($IF defined ... } was
added, and realized that it is not very simple to detect such information.
So beside this question of when was it added ?

What is the best way to find such information ?
Another question, should I open a bug for documentation, to add when a
specific feature like so was added in the documentation itself ?

Thanks,

Ido
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] detect the version of fpc that a feature added to it

2012-01-19 Thread Daniel Gaspary
On Thu, Jan 19, 2012 at 17:17, ik ido...@gmail.com wrote:
 Another question, should I open a bug for documentation, to add when a
 specific feature like so was added in the documentation itself ?

Do This issue cover this topic?

http://bugs.freepascal.org/view.php?id=15492
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] detect the version of fpc that a feature added to it

2012-01-19 Thread Marco van de Voort
In our previous episode, ik said:
 I was looking to understand in what version of FPC ($IF defined ... } was
 added, and realized that it is not very simple to detect such information.

True. SVN logs of documentation and compiler is the easiest. But that can be
exhausting. 

But $if is old. Wouldn't be surprised if the 2.x series all supported it.

In general I usually define the oldest version I want to support (now 2.4.4,
but from experience 2.4.2 usually works too), and dl and test with that
version (and intermediate ones).

Daniel: this is a language feature, the bugreport is about the same problem
for libraries.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal