Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Mattias Gaertner
On Sun, 6 May 2018 09:11:23 +0700 Ryan Joseph wrote: > > On May 6, 2018, at 12:23 AM, Sven Barth via fpc-pascal > > wrote: > > > > For some users it might be cumbersome however to write the complete names > > (even though their IDE of choice might support them here) or maybe they > > have di

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Ryan Joseph
> On May 6, 2018, at 8:16 AM, Ben Grasset wrote: > > Cool I guess. Kind of seems not very important at all though. FPC lacks > compatibility with current Delphi in various other far more significant > areas... > Anonymous functions? ;) Regards, Ryan Joseph

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Ryan Joseph
> On May 6, 2018, at 12:23 AM, Sven Barth via fpc-pascal > wrote: > > For some users it might be cumbersome however to write the complete names > (even though their IDE of choice might support them here) or maybe they have > different sets of units with same names and interfaces, but differe

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Ben Grasset
Cool I guess. Kind of seems not very important at all though. FPC lacks compatibility with current Delphi in various other far more significant areas... Virus-free. www.avast.com

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Sven Barth via fpc-pascal
Michael Van Canneyt schrieb am Sa., 5. Mai 2018, 21:24: > > > On Sat, 5 May 2018, Sven Barth via fpc-pascal wrote: > > > Hello together! > > > > I'm pleased to announce the implementation of a new feature: default > > namespaces. > > Great !! Nice job, Sven :) > > > Enter default namespaces. > >

[fpc-pascal] detecting recursive loops

2018-05-05 Thread James Richters
I'm having an issue with one of my programs that I suspect is being caused by a recursive loop... in simplified form... something like this: Procedure Proc1; Begin Proc2; End; Procedure Proc2; Begin Proc1; End; I ended up getting a runtime error and the report showed something like above,

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > >> or is this still planned ? > > > > How would this work anyway? Same problem like where to put a global $define > > ? > > Not sure what you mean ? > > {$NAMESPACE FMX} > > interface > > uses controls; -> Resolves to FMX.Controls ? I took g

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Michael Van Canneyt
On Sat, 5 May 2018, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Is there a reason you didn't implement a global directive: {$NAMESPACE somens} or is this still planned ? How would this work anyway? Same problem like where to put a global $define ? Not su

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > Is there a reason you didn't implement a global directive: > > {$NAMESPACE somens} > > or is this still planned ? How would this work anyway? Same problem like where to put a global $define ? ___ fp

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Michael Van Canneyt
On Sat, 5 May 2018, Sven Barth via fpc-pascal wrote: Hello together! I'm pleased to announce the implementation of a new feature: default namespaces. Great !! Nice job, Sven :) Enter default namespaces. The compiler is told about a default namespace using the new -FN parameter, whereby

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Tomas Hajny
On Sat, May 5, 2018 19:23, Sven Barth via fpc-pascal wrote: Hi Sven, . . > (e.g. "MyUnits" or "FCL.XML" or "FCL.Web.Base"). Like with all similar > -F parameters -FN only takes a single value, but can be specified > multiple times. . . I'm not sure what are 'all similar -F parameters', but

[fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Sven Barth via fpc-pascal
Hello together! I'm pleased to announce the implementation of a new feature: default namespaces. As you may know FPC supports the use of dots/points/periods (".") inside unit (and program/library) names which allows to avoid name collisions with a syntax similar to other languages like Java

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-05 Thread Michael Van Canneyt
On Sat, 5 May 2018, Marcos Douglas B. Santos wrote: I'm using fpWeb in standalone mode (fphttpapp unit) to develop and debug. I would like to see the heaptrc log in the end, as we can do in normal desktop applications. So, in one route I create an object and don't release it to simulate a mem

[fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-05 Thread Marcos Douglas B. Santos
I'm using fpWeb in standalone mode (fphttpapp unit) to develop and debug. I would like to see the heaptrc log in the end, as we can do in normal desktop applications. So, in one route I create an object and don't release it to simulate a memleak. I've tried to set heaptrc.SetHeapTraceOutput('log.

Re: [fpc-pascal] working with lldb

2018-05-05 Thread Mr Bee via fpc-pascal
Nothing fancy actually. I just want to watch some string variables while debugging, but LLDB just gives me like some kind of array with garbage values. Not useful at all. I'm using FPC v.3.0.2 with VS Code and LLDB (as VS Code plugin) on Mac. –Mr Bee Pada Sabtu, 5 Mei 2018 17.25.58 WIB, I

Re: [fpc-pascal] working with lldb

2018-05-05 Thread Ingemar Ragnemalm
Den 2018-05-05 kl. 12:00, skrev Mr Bee : Hi, Is there a way to make LLDB able to read and display Pascal's string correctly? At least, ansi string. I'm now using this option '-glpsw3 -godwarfcpp'. Did I miss some options or something? Thank you. In my experience, AnsiStrings will print with