Re: [fpc-pascal] Problem with array of const

2017-10-28 Thread pascalX
On 29/10/17 00:31, Vojtěch Čihák wrote: Looking to docs: https://www.freepascal.org/docs-html/ref/refsu69.html I tried writeln(AnsiString(args[0].VAnsiString)); or just writeln(String(args[0].VAnsiString)); which works. V. __ >

Re: [fpc-pascal] Problem with array of const

2017-10-28 Thread pascalX
On 29/10/17 00:31, Vojtěch Čihák wrote: Looking to docs: https://www.freepascal.org/docs-html/ref/refsu69.html I tried writeln(AnsiString(args[0].VAnsiString)); or just writeln(String(args[0].VAnsiString)); which works. V. __ >

Re: [fpc-pascal] Overloaded functions

2017-10-28 Thread pascalX
On 28/10/17 23:54, Darius Blaszyk wrote: Thanks! This is in line with what I was suspecting. However, why in the world does the compiler not warn in this case. This should be at least happening I would suppose? Darius Vojtěch Čihák schreef op 28 okt '17: Overloading means that you have

Re: [fpc-pascal] Problem with array of const

2017-10-28 Thread Vojtěch Čihák
Looking to docs: https://www.freepascal.org/docs-html/ref/refsu69.html I tried writeln(AnsiString(args[0].VAnsiString)); or just writeln(String(args[0].VAnsiString)); which works.   V.  __ Od: Darius Blaszyk

[fpc-pascal] Problem with array of const

2017-10-28 Thread Darius Blaszyk
Consider the application below. When I run it I do get the following output: name rgname�F&{---C000-0046} In other words I lose the first character (a) from the arguments supplied and the string returns with a lot of garbage. What am I doing wrong here? Rgds,

Re: [fpc-pascal] Overloaded functions

2017-10-28 Thread Darius Blaszyk
Thanks! This is in line with what I was suspecting. However, why in the world does the compiler not warn in this case. This should be at least happening I would suppose? Darius Vojtěch Čihák schreef op 28 okt '17: > Overloading means that you have functions with the same name but different >

Re: [fpc-pascal] Overloaded functions

2017-10-28 Thread Vojtěch Čihák
Overloading means that you have functions with the same name but different parameter (or param. list). You can have different return type for each parameter but you can never have the same parameters. V. __ Od: Darius Blaszyk

[fpc-pascal] Overloaded functions

2017-10-28 Thread Darius Blaszyk
Hi, I have a problem with overloaded functions. I defined these functions: function val_(name: string): string; function val_(name: string): boolean; function val_(name: string): integer; function val_(name: string): double; var res: boolean; begin res := val_(option_variable); end; I get

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-10-28 Thread leledumbo via fpc-pascal
> or even neural network libraries written in Pascal? Try contacting schuler in Lazarus forum. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Callbacks as nested functions

2017-10-28 Thread Adriaan van Os
Ryan Joseph wrote: On Oct 23, 2017, at 9:05 PM, Michael Van Canneyt wrote: It is not the default because neither Delphi nor TP allow this. then that begs the question, why not? :) If local functions are a useful feature then local callbacks should be too. Because

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-10-28 Thread Michael Van Canneyt
On Sat, 28 Oct 2017, Dennis wrote: or even neural network libraries written in Pascal? I know there are many python interfaces/libraries but I hope to use Pascal entirely so that I don't have to run a python server along side my Free Pascal program. Or, is it possible to call python from

[fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-10-28 Thread Dennis
or even neural network libraries written in Pascal? I know there are many python interfaces/libraries but I hope to use Pascal entirely so that I don't have to run a python server along side my Free Pascal program. Or, is it possible to call python from Free pascal? If not, in the worst