Re: [fpc-pascal] compiler option for $J directive

2017-10-11 Thread Sven Barth via fpc-pascal
Am 11.10.2017 05:12 schrieb "Mr Bee via fpc-pascal" <
fpc-pascal@lists.freepascal.org>:
>
> 2017-10-10 13:28 GMT+07:00 Marco van de Voort :
>>
>>
>> Since it is already largely uploaded, no. We are only waiting on some
>> targets.
>
>
> I thought such a minor fix that don't break any codes could be included.

It doesn't matter whether it's minor. Building has already started and we
definitely won't start that again for something like this.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-11 Thread Sven Barth via fpc-pascal
Am 11.10.2017 07:00 schrieb "Mr Bee via fpc-pascal" <
fpc-pascal@lists.freepascal.org>:
>
> 2017-10-10 16:21 GMT+07:00 Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org>:
>>
>> They were used mainly back at TP times to have procedure local static
variables (cause that is how they behave as inside procedures).
>
> Can we make the {$J-} as default in fpc and objfpc mode for the next
major release?

The default of $J will change in *no* existing mode as that will break
backwards compatibility. It doesn't matter whether it's a major release or
not.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Christo Crause
>> They were used mainly back at TP times to have procedure local static
variables (cause that is how they behave as inside procedures).
>
> Can we make the {$J-} as default in fpc and objfpc mode for the next
major release?

+1
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
2017-10-10 16:21 GMT+07:00 Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org>:

> They were used mainly back at TP times to have procedure local static
> variables (cause that is how they behave as inside procedures).
>
Can we make the {$J-} as default in fpc and objfpc mode for the next major
release?


-- 

Regards,


–Mr Bee
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
2017-10-10 13:28 GMT+07:00 Marco van de Voort :

>
> Since it is already largely uploaded, no. We are only waiting on some
> targets.
>

I thought such a minor fix that don't break any codes could be included.


-- 

Regards,


–Mr Bee
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Sven Barth via fpc-pascal
Am 10.10.2017 08:49 schrieb :
> BTW why would anyone want
> {$WRITEABLECONST ON}
>
> writable constants is an oxymoron and goes against the whole philosophy
of strict types which is central to Pascal.

They were used mainly back at TP times to have procedure local static
variables (cause that is how they behave as inside procedures).

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Juha Manninen
On Tue, Oct 10, 2017 at 9:33 AM,   wrote:
> Now a patch has been integrated for this , perhaps it could be added to
> Lazarus  Project Options | Compiler Options | Parsing

Patches are welcome also for that.
The option must be either hidden for compiler versions that do not
support it, or there must be a clear note / hint about it.

Juha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread pascalX

On 08/10/17 21:24, leledumbo via fpc-pascal wrote:

There is my old feature request about it
https://bugs.freepascal.org/view.php?id=30344 :) You can monitor it.


No one seems to care to implement it, so if you badly need it:  sj.patch

Apply in compiler directory (please checkout r37430 at least), I only svn
diff there, not in the top level directory (I have modifications to certain
packages).



Now a patch has been integrated for this , perhaps it could be added to 
Lazarus  Project Options | Compiler Options | Parsing


BTW why would anyone want
{$WRITEABLECONST ON}

writable constants is an oxymoron and goes against the whole philosophy 
of strict types which is central to Pascal.



:?

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

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Marco van de Voort
In our previous episode, Mr Bee via fpc-pascal said:
> Thank you, both to Leledumbo and Sven. Will this patch be available in the 
> next FPC v.3.0.4 release?

Since it is already largely uploaded, no. We are only waiting on some
targets.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
2017-10-08 23:17 GMT+07:00 Marcos Douglas B. Santos :

>
> Most developers are using single .inc file that contains all
> directives for the whole project.
>

Well, I don't like such approach. I prefer using my own shell script that I
can configure for many purposes and conditions such as build release, build
debug, build test, build deploy, etc. which each has different compiler
setting with custom before/after action.

-- 

Regards,


–Mr Bee
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
Thank you, both to Leledumbo and Sven. Will this patch be available in the next 
FPC v.3.0.4 release?

–Mr Bee
 

Pada Selasa, 10 Oktober 2017 04.44.44 WIB, Sven Barth via fpc-pascal 
 menulis:  
 
 
Am 08.10.2017 22:24 schrieb "leledumbo via fpc-pascal" 
:
>
> > There is my old feature request about it
> > https://bugs.freepascal.org/view.php?id=30344 :) You can monitor it.
>
> No one seems to care to implement it, so if you badly need it:  sj.patch
> 
> Apply in compiler directory (please checkout r37430 at least), I only svn
> diff there, not in the top level directory (I have modifications to certain
> packages).
>

Applied in r37437. Thank you for the patch.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal  ___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-09 Thread Sven Barth via fpc-pascal
Am 08.10.2017 22:24 schrieb "leledumbo via fpc-pascal" <
fpc-pascal@lists.freepascal.org>:
>
> > There is my old feature request about it
> > https://bugs.freepascal.org/view.php?id=30344 :) You can monitor it.
>
> No one seems to care to implement it, so if you badly need it:  sj.patch
> 
> Apply in compiler directory (please checkout r37430 at least), I only svn
> diff there, not in the top level directory (I have modifications to
certain
> packages).
>

Applied in r37437. Thank you for the patch.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal