Re: [fpc-pascal] Why casting interface as Tobject will result in a different reference?

2017-05-26 Thread Sven Barth via fpc-pascal
2017-05-26 11:08 GMT+02:00 Michael Van Canneyt : > > > On Fri, 26 May 2017, Dennis wrote: > >> I defined a generic TList //CORBA style interface >> >> var >>aInt : IMyInterface; >> aObj : TObject; >> begin >>aInt := MyList.Items[0]; >>aObj := aInt as TObject;

Re: [fpc-pascal] download mirror is missing

2017-05-26 Thread Sven Barth via fpc-pascal
2017-05-25 17:22 GMT+02:00 Marco van de Voort : > In our previous episode, Sven Barth via fpc-pascal said: >> > >> > In particular, avoid these languages: >> > https://www.destroyallsoftware.com/talks/wat >> >> I'd say if he decides to use JS he'd use it through pas2js :P > >

Re: [fpc-pascal] Browser and exe

2017-05-26 Thread Marcos Douglas B. Santos
On Fri, May 26, 2017 at 1:27 AM, wrote: >> But I meant, how do you know if another app is already using a port >> that you want to use? > > > This is the reason I think web servers are the wrong way to go for any > desktop application (Golang is going crazy with everything

Re: [fpc-pascal] ptccrt missing keys

2017-05-26 Thread James Richters
>It's great that it's finally working for you. And yes, ptccrt supports most >alt and ctrl key combinations, but if you find some key combination missing, >please report it - it is easy to add. I could really use F11 and F12 including shift, alt, and crtl if possible from the prccrt graphics

Re: [fpc-pascal] FPC Graphics options?

2017-05-26 Thread Ryan Joseph
> On May 24, 2017, at 11:47 PM, Martin Schreiber wrote: > > MSElang, LLVM 3.8.0 > No options -> 4.2 FPS > -O3 -> 5.9 FPS > -O3 -mcpu=corei7 -mattr=+sse3,+ssse3 -> 33.5 FPS > > With trunci32() operations >

Re: [fpc-pascal] fpc code for Java class and Android.

2017-05-26 Thread Paul Breneman
On 05/26/2017 06:25 AM, fredvs wrote: Paul Breneman wrote I'll try to figure out how to do things (using ideU) first on my 64-bit Xubuntu 16.04. After that is clear it should be easier to try the same thing on Android? Are there any wiki pages for this? If not I'd like to help create one.

[fpc-pascal] GLM library alternative?

2017-05-26 Thread Ryan Joseph
I’m trying to following some OpenGL tutorials to learn the matrix transforms but I’m getting stuck because I don’t have the c++ GLM library which everyone is using. I see FPC has a matrix class but it doesn’t include all the helpers in GLM like rotation, transform, perspective transforms

Re: [fpc-pascal] FPC Graphics options?

2017-05-26 Thread Martin Schreiber
On Saturday 27 May 2017 03:37:59 Ryan Joseph wrote: > > Is MSElang another Pascal compiler? I’ve never heard of it. I know LLVM is > being used by Apple for Objective-C/Swift (I think) but for Pascal? > https://gitlab.com/mseide-msegui/mselang/wikis/home Martin

[fpc-pascal] Error cross compiling trunk for AVR

2017-05-26 Thread Christo
A recent change in 3.1.1 seemed to have broken the AVR compiler, while the compiler compiles fine for X86_64-linux. I think the problem started from r36325: make clean crossall OS_TARGET=embedded CPU_TARGET=avr SUBARCH=avr5 BINUTILSPREFIX=avr- CROSSOPT="-O3 -XX -CX"

Re: [fpc-pascal] Why casting interface as Tobject will result in a different reference?

2017-05-26 Thread Ryan Joseph
> On May 26, 2017, at 4:06 PM, Dennis wrote: > > writeln( IntToHex(LongWord(aInt),4)); > > writeln( IntToHex(LongWord(aObj),4)); //this will output a different Hex > value from previous writeln I think an object and interface are indeed not the same memory and you

[fpc-pascal] Why casting interface as Tobject will result in a different reference?

2017-05-26 Thread Dennis
I defined a generic TList //CORBA style interface var aInt : IMyInterface; aObj : TObject; begin aInt := MyList.Items[0]; aObj := aInt as TObject; writeln( IntToHex(LongWord(aInt),4)); writeln( IntToHex(LongWord(aObj),4)); //this will output a different Hex value from

Re: [fpc-pascal] Why casting interface as Tobject will result in a different reference?

2017-05-26 Thread Michael Van Canneyt
On Fri, 26 May 2017, Dennis wrote: I defined a generic TList //CORBA style interface var aInt : IMyInterface; aObj : TObject; begin aInt := MyList.Items[0]; aObj := aInt as TObject; writeln( IntToHex(LongWord(aInt),4)); writeln( IntToHex(LongWord(aObj),4)); //this will

Re: [fpc-pascal] Why casting interface as Tobject will result in a different reference?

2017-05-26 Thread Graeme Geldenhuys
On 2017-05-26 10:06, Dennis wrote: Am I missing some fundamental understanding of interface reference? Bottom line is, NEVER mix Objects and Interfaces. Program for the one or the other. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [fpc-pascal] fpc code for Java class and Android.

2017-05-26 Thread fredvs
Paul Breneman wrote > I'll try to figure out how to do things (using ideU) first on my 64-bit > Xubuntu 16.04. After that is clear it should be easier to try the same > thing on Android? Are there any wiki pages for this? If not I'd like > to help create one. Hello Paul. Are you taking