Re: [fpc-pascal] Bls: Writing fpWeb app without Lazarus

2016-06-08 Thread Michael Van Canneyt
On Wed, 8 Jun 2016, Mr Bee wrote: Pada Selasa, 7 Juni 2016 15:23, Michael Van Canneyt menulis: What is the URL you used to access your app ? http://beeography.koding.io/hello.cgi (/mod) (/act [/act1 | act/act2]) And here's the source code: http://pastebin.com/N7EQz4Lk Feel free to corr

Re: [fpc-pascal] Bls: Writing fpWeb app without Lazarus

2016-06-08 Thread Graeme Geldenhuys
On 2016-06-08 07:37, Mr Bee wrote: > I did. But all the examples I found are using Lazarus aka RAD. If you look at the wiki, then yes, that is predominantly a Lazarus support area. The FCL packages normally included example projects too, or unit tests. Both are handy for leaning usage of packages.

[fpc-pascal] Incompatible types: got "SYSTEM.PChar" expected "SYSTEM.PChar"

2016-06-08 Thread José Mejuto
Hello, I have a lot of constant strings and some array of records that should be initialized in one field with one of this entries, so I found two solutions, one is create a symbol for each string, something like: const TMyStringSymbol='String one'; But also I need to be able to enumerate

[fpc-pascal] Java equivalent of Pascal's class reference functionality

2016-06-08 Thread Graeme Geldenhuys
Hi, I know this is not a Java forum, but thought maybe somebody here with Object Pascal and Java knowledge could help (seeing that Java-only developers might not know what I'm talking about). Does Java have an equivalent feature of a Object Pascal language's Class Reference. For Example: I want

Re: [fpc-pascal] Java equivalent of Pascal's class reference functionality

2016-06-08 Thread Ryan Gonzalez
Not sure about your question exactly, but everything in Java is passed by reference, and all objects are covariant, so you shouldn't need to do anything. On Wed, Jun 8, 2016 at 6:17 PM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > Hi, > > I know this is not a Java forum, but though

Re: [fpc-pascal] Java equivalent of Pascal's class reference functionality

2016-06-08 Thread Graeme Geldenhuys
On 2016-06-09 00:23, Ryan Gonzalez wrote: > Not sure about your question exactly, but everything in Java is passed by > reference Not quite what I meant. :) The Object Pascal feature is that my example code - ExecuteVisitor() - doesn't know at compile time what instance (any descendant of TVisito

Re: [fpc-pascal] Java equivalent of Pascal's class reference functionality

2016-06-08 Thread Maciej Izak
2016-06-09 1:17 GMT+02:00 Graeme Geldenhuys : > Does Java have an equivalent feature of a Object Pascal language's Class > Reference. > +/- yes, it is called Class and you need no-arg constructor for that: https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html public void executeVisitor

Re: [fpc-pascal] Java equivalent of Pascal's class reference functionality

2016-06-08 Thread Graeme Geldenhuys
On 2016-06-09 00:46, Maciej Izak wrote: > ± yes, it is called Class and you need no-arg constructor for that: Thank you very much Maciej. I couldn't get your code to work. Eclipse (thus Java Compiler) insisted that I replace Class with Class which completely defeats the exercise - the whole point

[fpc-pascal] Bls: Bls: Writing fpWeb app without Lazarus

2016-06-08 Thread Mr Bee
Pada Rabu, 8 Juni 2016 15:59, Michael Van Canneyt menulis: > I develop using fpweb all the time, without RAD, so I know this works :-) Of course you do. You are the main author of fpWeb, after all. :) It's me who didn't know how to do it due the lack of documentation. > There are over 1000

Re: [fpc-pascal] Java equivalent of Pascal's class reference functionality

2016-06-08 Thread Jonas Maebe
> On 09 Jun 2016, at 02:36, Graeme Geldenhuys > wrote: > >> On 2016-06-09 00:46, Maciej Izak wrote: >> ± yes, it is called Class and you need no-arg constructor for that: > > Thank you very much Maciej. I couldn't get your code to work. Please take this thread, and future similar ones, to the

Re: [fpc-pascal] Incompatible types: got "SYSTEM.PChar" expected "SYSTEM.PChar"

2016-06-08 Thread Sven Barth
Am 09.06.2016 00:05 schrieb "José Mejuto" : > --- > program testpossiblebug; > > type > TFirstRecord=record > Ident: pchar; > end; > > const > TSomePcharArray: array [0..1] of pchar = ( 'pcharONE','pcharTWO'); > > {$DEFINE THISDONTCOMPILE} > > TConstRecord: TFirstRec