Re: [fpc-pascal] Class procedural type

2012-12-17 Thread Sven Barth
Am 17.12.2012 22:27 schrieb "Ewald" : > > > On 17 Dec 2012, at 20:04, Sven Barth wrote: > > > > > There is no real solution for this. > > I already thought so, I thank you for clearing this matter up to me. > > > > >> Any ideas? > >> > >> BTW: For time being I fixed it through > >> TProcType(Pointe

Re: [fpc-pascal] Class procedural type

2012-12-17 Thread Sven Barth
Am 17.12.2012 23:46 schrieb "Paul Ishenin" : > > 18.12.12, 5:26, Ewald пишет: > > >> Suppose TTestClass contains `AField: Integer; static;`, then the following would be right if I understand you correctly? >> >> Class Procedure TTestClass.AMethod; static; // I don't know if `static` should be in t

Re: [fpc-pascal] Documentation

2012-12-17 Thread luciano de souza
I have never used FPDoc, but I'd like to understand how it would work in my specific case. I am blind. I use screen reader. I compile my projects without the intervenience of an IDE. No Lazarus, No FPC console ID, I compile my projects with commands like that: fpc myprog.pp If Myprog.pp has the P

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread John
On 12/17/2012 08:45 PM, michael.vancann...@wisa.be wrote: On Mon, 17 Dec 2012, LacaK wrote: michael.vancann...@wisa.be wrote / napísal(a): On Mon, 17 Dec 2012, LacaK wrote: 2) The simple way to get the schemas would be to simply 'select ... schemaname||'.'||relname as table_name ... fr

Re: [fpc-pascal] Documentation

2012-12-17 Thread Graeme Geldenhuys
On 17/12/12 21:45, Mattias Gaertner wrote: > > I thought that was fixed? OK, my apologies for the false alarm. The XML generation seems fixed now. There are other issues with the FPDoc Editor dialog though. Off the top of my head: - It allows you to enter long descriptions for method arguments

Re: [fpc-pascal] Documentation

2012-12-17 Thread Graeme Geldenhuys
On 17/12/12 21:45, Mattias Gaertner wrote: > > I thought that was fixed? Umm, I'll have to double check. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-pascal maillist

Re: [fpc-pascal] Class procedural type

2012-12-17 Thread Paul Ishenin
18.12.12, 5:26, Ewald пишет: Suppose TTestClass contains `AField: Integer; static;`, then the following would be right if I understand you correctly? Class Procedure TTestClass.AMethod; static; // I don't know if `static` should be in the implementation as well, but I'll soon figure out :-)

Re: [fpc-pascal] Documentation

2012-12-17 Thread Mattias Gaertner
On Mon, 17 Dec 2012 20:44:08 + Graeme Geldenhuys wrote: > On 17/12/12 17:57, dev.d...@gmail.com wrote: > > > > Btw. I really like the lazarus fpdoc GUI... > > Compared to Documentation Insight (a Delphi IDE add-on), the UI of FPDoc > Editor has a lot to be desired for. Plus the fact that FP

Re: [fpc-pascal] Class procedural type

2012-12-17 Thread Ewald
On 17 Dec 2012, at 20:04, Sven Barth wrote: > > There is no real solution for this. I already thought so, I thank you for clearing this matter up to me. > >> Any ideas? >> >> BTW: For time being I fixed it through >> TProcType(Pointer(@TTestClass.AMethod)), where `TProcType = Procedure;`. >>

Re: [fpc-pascal] Documentation

2012-12-17 Thread Graeme Geldenhuys
On 17/12/12 17:57, dev.d...@gmail.com wrote: > > Btw. I really like the lazarus fpdoc GUI... Compared to Documentation Insight (a Delphi IDE add-on), the UI of FPDoc Editor has a lot to be desired for. Plus the fact that FPDoc Editor generates undesired formatted XML for fpdoc is not so nice. Th

Re: [fpc-pascal] Bitpacked dynamic array support

2012-12-17 Thread Flávio Etrusco
You can use sets or TBits. Unless you mean packed arrays of byte or word, etc. In this case you just declare "myvar: packed array of byte". -Flávio On Mon, Dec 17, 2012 at 5:46 PM, denisgolovan wrote: > Hi guys > > It looks like currently FPC does not support dynamic bitpacked arrays. > I wonder

[fpc-pascal] Bitpacked dynamic array support

2012-12-17 Thread denisgolovan
Hi guys It looks like currently FPC does not support dynamic bitpacked arrays. I wonder how much work it will take to make support for it? For some things, it's a really useful functionality. -- Regards, Denis Golovan ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] Class procedural type

2012-12-17 Thread Sven Barth
On 17.12.2012 17:39, Ewald wrote: Hello, Is there any way to define the appropriate type for `AMethod` (in mode ObjFPC)? TTestClass = Class Public Class Procedure AMethod; End; I tried Type TSomeType = Class Procedure; But this didn't work. Rather obvious of cours

Re: [fpc-pascal] Documentation

2012-12-17 Thread Michael Van Canneyt
On Mon, 17 Dec 2012, dev.d...@gmail.com wrote: Hi, as the question whether inline or external source docs are the way to go (again?) came up, here are my thoughts (currently searching for the "best" solution :) ): I personally prefer external docs (and thus started to use fpdoc); reasons are

Re: [fpc-pascal] Websocket client

2012-12-17 Thread Ralf A. Quint
At 02:25 AM 12/17/2012, Krzysztof wrote: But then you did not mention that you're looking for something cross-platform either.. ;-) Actually I did :P "...client which work on linux and windows" Sorry, my bad :-[ , I totally missed that, saw it now when I checked back at your original messa

[fpc-pascal] Documentation

2012-12-17 Thread dev . dliw
Hi, as the question whether inline or external source docs are the way to go (again?) came up, here are my thoughts (currently searching for the "best" solution :) ): I personally prefer external docs (and thus started to use fpdoc); reasons are uncluttered source, less scrolling and (if you str

Re: [fpc-pascal] How do FreePascal implement hardware exceptions handling?

2012-12-17 Thread Andrzej Borucki
2012/12/16 Sven Barth > Why are you doing this? install_exception_handlers is called during > process entry of Win32/Win64 programs already, so calling this twice can be > considered a bad(TM) idea. > > Regards, > Maybe hence problems. I want to create own compiler for simplified language with ex

[fpc-pascal] Allegro.pas 4.4.4 released

2012-12-17 Thread gmartinez
Hello fellow "Pascaloids", I'm proud to announce that Allegro.pas 4.4.4 was released some days ago. This new version has a lot of improvements: * Added full support for 64bit systems. * New API for data types, parameters and return values, less confusing that previous one. * Demonstration gam

[fpc-pascal] Class procedural type

2012-12-17 Thread Ewald
Hello, Is there any way to define the appropriate type for `AMethod` (in mode ObjFPC)? TTestClass = Class Public Class Procedure AMethod; End; I tried Type TSomeType = Class Procedure; But this didn't work. Rather obvious of course since this could also be interpreted as

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread LacaK
For now I added in rev.23163 schema name into query for PostgreSQL (so no empty schema name is returned, but valid schema name) Here I understand: stTables - list of all tables, which may include system tables (it is not clear from documentation)? stSysTables - list of ONLY system tables (not v

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread Ludo Brands
The question is also why return SCHEMA_NAME || '.' || TABLE_NAME when this is not always usable in a query later on ? One DB needs "SCHEMA_NAME"."TABLE_NAME", another `SCHEMA_NAME`.`TABLE_NAME`. An additional option soQuoteNames? Well, if you don't need the concatenation, presumably you don'

Re: [fpc-pascal] Re: Indexing files

2012-12-17 Thread Krzysztof
> These calls are available in the linux unit. I have an article that > describes how it works, if you want. > @Michael Van Canneyt: Could you send mi link to this article? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepasc

[fpc-pascal] Re: Feature announcement: Generic type constraints

2012-12-17 Thread leledumbo
> Ehm... you know that AFAIK all those languages have constraints as well? :) Yes, I do ;) > Though if your comment is regarding the possible future developments: of > course :D You got my point -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Feature-announ

Re: [fpc-pascal] Brook 1.0 - A new framework for web was born

2012-12-17 Thread Michalis Kamburelis
michael.vancann...@wisa.be wrote: On Sun, 16 Dec 2012, Graeme Geldenhuys wrote: On 15/12/2012 21:22, Sven Barth wrote: Maybe because the authors prefered inline comments instead of fpdoc's XML files... A shame, because the more detailed the documentation, the more it obfuscates the code. e

Re: [fpc-pascal] Websocket client

2012-12-17 Thread Krzysztof
Ok finally I get working demo of first websocket client based on synapse: http://code.google.com/p/bauglir-websocket . If you want to connect to test serwer on http://www.websocket.org you must set host exactly to ' echo.websocket.org' (don't use 'ws://' or 'http://' prefix!) and port to 80. But if

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread michael . vancanneyt
On Mon, 17 Dec 2012, Ludo Brands wrote: On 17/12/2012 10:45, michael.vancann...@wisa.be wrote: On Mon, 17 Dec 2012, LacaK wrote: Yes. May be, that I was not clear. My suggestion was 3+ fields in query: SCHEMA_NAME, TABLE_NAME, SCHEMA_TABLE_NAME (SCHEMA_NAME || '.' || TABLE_NAME) But o

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread LacaK
michael.vancann...@wisa.be wrote / napísal(a): On Mon, 17 Dec 2012, LacaK wrote: But original question AFAIU was about: what should GetTableNames return (schema query can return multiple columns, but what column use when fill list of table names)? GetTableNames return list of table names i

Re: [fpc-pascal] Websocket client

2012-12-17 Thread Krzysztof
> But then you did not mention that you're looking for something > cross-platform either.. ;-) Actually I did :P "...client which work on linux and windows" ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread Ludo Brands
On 17/12/2012 10:45, michael.vancann...@wisa.be wrote: On Mon, 17 Dec 2012, LacaK wrote: Yes. May be, that I was not clear. My suggestion was 3+ fields in query: SCHEMA_NAME, TABLE_NAME, SCHEMA_TABLE_NAME (SCHEMA_NAME || '.' || TABLE_NAME) But original question AFAIU was about: what shoul

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread michael . vancanneyt
On Mon, 17 Dec 2012, LacaK wrote: But original question AFAIU was about: what should GetTableNames return (schema query can return multiple columns, but what column use when fill list of table names)? GetTableNames return list of table names into TStrings. Now only TABLE_NAME is returned. Jo

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread LacaK
michael.vancann...@wisa.be wrote / napísal(a): On Mon, 17 Dec 2012, LacaK wrote: michael.vancann...@wisa.be wrote / napísal(a): On Mon, 17 Dec 2012, LacaK wrote: 2) The simple way to get the schemas would be to simply 'select ... schemaname||'.'||relname as table_name ... from pg_sta

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread michael . vancanneyt
On Mon, 17 Dec 2012, LacaK wrote: michael.vancann...@wisa.be wrote / napísal(a): On Mon, 17 Dec 2012, LacaK wrote: 2) The simple way to get the schemas would be to simply 'select ... schemaname||'.'||relname as table_name ... from pg_stat_user_tables. This would be a change ONLY to the

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread LacaK
michael.vancann...@wisa.be wrote / napísal(a): On Mon, 17 Dec 2012, LacaK wrote: 2) The simple way to get the schemas would be to simply 'select ... schemaname||'.'||relname as table_name ... from pg_stat_user_tables. This would be a change ONLY to the sql in pqconnection. (If worst come

Re: [fpc-pascal] Brook 1.0 - A new framework for web was born

2012-12-17 Thread michael . vancanneyt
On Sun, 16 Dec 2012, Graeme Geldenhuys wrote: On 15/12/2012 21:22, Sven Barth wrote: Maybe because the authors prefered inline comments instead of fpdoc's XML files... A shame, because the more detailed the documentation, the more it obfuscates the code. eg: Documentation Insight, a pop

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread michael . vancanneyt
On Mon, 17 Dec 2012, LacaK wrote: 2) The simple way to get the schemas would be to simply 'select ... schemaname||'.'||relname as table_name ... from pg_stat_user_tables. This would be a change ONLY to the sql in pqconnection. (If worst comes to worst, I dare say could create my own pqconn

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread LacaK
Reinier Olislagers wrote / napísal(a): On 16-12-2012 2:27, John wrote: @Reinier: Analysis: As far as I can work out, a call to GetTableNames calls GetDBInfo, with parameters ASchemaType : TSchemaType - This specifies what info we want - user tables, sys tables, procedures, columns e

[fpc-pascal] Re: Indexing files

2012-12-17 Thread Reinier Olislagers
On 16-12-2012 20:40, Krzysztof wrote: > And which database you prefer? I don't need complicated functionality. > The most important is insert speed and it must be embedded. I'm thinking > of SQLight, DBF or Firebird Embedded I'd probably go with SQLite or Firebird embedded. SQlite is probably a bi

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread LacaK
I think, that if this view(s) is(are) presented in all versions of PostgreSQL which fcl-db is going to support, that it is no problem use them (I must note, that my preffered way is follow sql standard INFORMATION_SCHEMA views at least in column naming) The equivalent INFORMATION_SCHEMA view