[fpc-pascal] Dynamic messaging in Delphi

2012-07-24 Thread Ryan Joseph
); end; var delegate: TMyDelegate; begin delegate := TMyDelegate.Create; TestDelegate(delegate); end. Regards, Ryan Joseph thealchemistguild.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Dynamic messaging in Delphi

2012-07-24 Thread Ryan Joseph
) then intfDelegate.DoThis Regards, Ryan Joseph thealchemistguild.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Dynamic messaging in Delphi

2012-07-25 Thread Ryan Joseph
wrote: For CORBA interfaces do IMyInterface = interface ['myintf'] procedure DoThis (value: integer); end; if delegate.GetInterface('myintf', intfDelegate) then intfDelegate.DoThis Regards, Ryan Joseph thealchemistguild.com

Re: [fpc-pascal] Dynamic messaging in Delphi

2012-07-26 Thread Ryan Joseph
like the following if you are using CORBA interfaces. TMyDelegate = class(TObject, MyDelegate) ... end; And that should work correctly with CORBA style interfaces (which don't have reference counting built-in). That was useless code, you're right, thanks. Regards, Ryan

Re: [fpc-pascal] Dynamic messaging in Delphi

2012-07-26 Thread Ryan Joseph
, Ludo Brands wrote: http://www.freepascal.org/docs-html/rtl/sysutils/supports.html I'm getting an identifier not found error with the procedure Supports. Where is this defined? Regards, Ryan Joseph thealchemistguild.com ___ fpc-pascal

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
r easy. I don’t use the RAD tools so those are in the way but the biggest problem is how everything is broken up into separate windows. Could that be changed? Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@list

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
eferences > >> and a place I could reference the Windows headers in Pascal? > > MSDN, nowhere else despite they only have documentation for languages they > support (C++, C#, VB, perhaps F#). Regards, Ryan Joseph _

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
> On Oct 22, 2015, at 6:07 PM, Graeme Geldenhuys > <mailingli...@geldenhuys.co.uk> wrote: > > On 2015-10-22 05:20, Ryan Joseph wrote: >> Keeping in mind I know literally nothing about Windows programming, >> where is a good place to start? > > Start reading

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
lcome): > http://www.controlpascal.com/tutorial.htm Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Basic Windows tutorial

2015-10-23 Thread Ryan Joseph
odetools. > > Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] El Capitan 10.11 installation

2015-10-22 Thread Ryan Joseph
rg > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ryan Joseph
or where I could reference that online (.net maybe?). Sorry for being vague but I’m starting from absolute ground zero. ;) Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-15 Thread Ryan Joseph
so and I found an example at http://wiki.freepascal.org/fcl-image#Drawing_text which uses TFPMemoryImage. Thanks for the example, I’ll give this a try. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-15 Thread Ryan Joseph
FPImage and it's easier to implement also, being just a single function. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-13 Thread Ryan Joseph
PCustomImage is an abstract class but TFPMemoryImage apparently has stored values so I should be able to access the “Data” property but these seem to be accessors to getting single pixel values so I can’t just pass the entire block into glTexImage2D like you did. R

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-16 Thread Ryan Joseph
ses documented or should I just try to dig around the FPC sources to find these things? There are dozens of classes available at http://wiki.freepascal.org/fcl-image but I don’t know what any of them do. Regards, Ryan Joseph ___ fpc-pascal

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-11 Thread Ryan Joseph
so I’m not sure how this would work. There is the guide I found but is there any more complete examples I could look at? Too much is missing to understand exactly how all these classes work together. http://wiki.freepascal.org/fcl-image Thanks. Regards

[fpc-pascal] Loading PNG files as OpenGL textures

2015-10-11 Thread Ryan Joseph
. A small simple solution would be best if that’s possible. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-11 Thread Ryan Joseph
ta. There’s code at http://www.sulaco.co.za/opengl_project_BMP_JPG_TGA_texture_loader.htm which follows a similar procedure but it’s Delphi and I couldn’t get it to run on FPC on my anyways. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-11 Thread Ryan Joseph
UI/blob/develop/src/corelib/fpg_imgfmt_png.pas But can I then access the pixel data so I can hand it to glTexImage2D and make the texture? I think the FPC RTL classes on http://wiki.freepascal.org/fcl-image would do this also but again it’s not clear how to get the pixel data for glTexImage2D Tha

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-11 Thread Ryan Joseph
y libraries? Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-11 Thread Ryan Joseph
bitmapData); CFRelease(colorSpace); end; end; Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-13 Thread Ryan Joseph
There should be some a single continuous block of memory in this class but I can’t seem to find it using the colors/pixels property. What am I missing? == http://lazarus-ccr.sourceforge.net/docs/fcl/fpimage/tfpmemoryimage.html http://lazarus-ccr.sourceforge.net/docs/fcl/fpimage/tfpcustomimag

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-13 Thread Ryan Joseph
o be an extra step now. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] FreeGLUT on Windows

2015-12-23 Thread Ryan Joseph
take the higher learning curve route and break down the OpenGLControl demo and use TOpenGLControl? Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-pascal] FreeGLUT on Windows

2015-12-24 Thread Ryan Joseph
ersion uses OpenGL ES2.0, and has support for an OpenVG context if > users prefer a much easier to work with 2D API. > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pa

Re: [fpc-pascal] FreeGLUT on Windows

2015-12-24 Thread Ryan Joseph
reeGlut(LoadLibrary('/freeglut/bin/freeglut.dll')); Did I miss something? Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GLExt crashing

2016-01-29 Thread Ryan Joseph
extension: > https://www.khronos.org/registry/gles/extensions/OES/OES_blend_subtract.txt > . If this extension is supported, you could load glBlendEquationOES > function, which should be what you need. Regards, Ryan Joseph ___ fpc-pas

[fpc-pascal] GLExt crashing

2016-01-28 Thread Ryan Joseph
Functions like glBlendEquation from GLExt are crashing (access violation) compiling on Mac with ppc386. The functions didn’t get loaded I think for some reason. Is this is known problem on Mac with a work around perhaps? Thanks. Regards, Ryan Joseph

Re: [fpc-pascal] GLExt crashing

2016-01-28 Thread Ryan Joseph
oad_GL_version_1_2, and then > (assuming Load_GL_version_1_2 returned true) glBlendEquation will be > non-nil and will work OK. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GLExt crashing

2016-01-28 Thread Ryan Joseph
-to-2-0-ios > On Jan 29, 2016, at 11:14 AM, Michalis Kamburelis <michalis.ka...@gmail.com> > wrote: > > Indeed, glBlendEquation is simply not available in OpenGLES 1.1. Regards, Ryan Joseph ___ fpc-pascal maill

[fpc-pascal] Building Android cross compiler error

2016-02-22 Thread Ryan Joseph
e] Error 2 make[1]: *** [compiler_cycle] Error 2 make: *** [build-stamp.arm-android] Error 2 Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Android porting ideas

2016-02-22 Thread Ryan Joseph
ss that makes sense but I was thinking EVERYTHING on the system was now > Java but that’s not the case I guess. The lesson here is that Android is > built on Linux so we’re sharing more than I think. This will probably make more sense when I learn about the asset manager more. I think I rea

Re: [fpc-pascal] Building Android cross compiler error

2016-02-22 Thread Ryan Joseph
rch-arm/usr/lib/ > #endif > #ifdef cpu386 > -Fl/home/michalis/.../android/ndk/platforms/android-19/arch-x86/usr/lib/ > #endif > #endif > > Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Android porting ideas

2016-02-20 Thread Ryan Joseph
make sense here but I’m not sure. Any ideas? Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Android porting ideas

2016-02-21 Thread Ryan Joseph
Good idea, thanks. > On Feb 21, 2016, at 9:08 PM, leledumbo <leledumbo_c...@yahoo.co.id> wrote: > > Learn how Castle Game Engine and ZenGL managed to do it. They don't use JVM, > but the ARM target of the compiler. Regards,

Re: [fpc-pascal] Android porting ideas

2016-02-21 Thread Ryan Joseph
se engines like CGE give you more comfortable API for rendering, > on top of this. So internally Android just uses the same C libraries we were using in Pascal? I guess that makes sense but I was thinking EVERYTHING on the system was now Java but that’s not the c

[fpc-pascal] TPersistent overhead

2016-03-25 Thread Ryan Joseph
, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TPersistent overhead

2016-03-26 Thread Ryan Joseph
n Sat, 26 Mar 2016, Ryan Joseph wrote: > >> What are all the performance costs associated with subclassing TPersistent >> for RTTI information? I want to use this in some classes but >> unfortunately the way my code is written I need to basically make all my >> classes de

Re: [fpc-pascal] TPersistent overhead

2016-03-27 Thread Ryan Joseph
the RTTI after the class definition. > > For example: > > {$M+} > TtiVisited = class(TObject) >... define your class interface here... > end; > {$M-} Regards, Ryan Joseph ___ fpc-pascal maillist

[fpc-pascal] A better way?

2016-04-13 Thread Ryan Joseph
procedure DoSomething; virtual; abstract; end; “main” unit which implements the class: type TSomeClass = class (TSomeClassAbstract) procedure DoSomething; override; end; Regards, Ryan Joseph ___ fpc-pascal maillist -

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ryan Joseph
at many other units use TClassB and it’s not exclusive to TClassA so putting them in the same unit doesn’t make sense. Maybe I’m doing something stupid but other languages have forward declarations so I wonder why Pascal isn’t doing this also since it seems like the obvious solution. Rega

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ryan Joseph
nt them merged. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ryan Joseph
C until 2004 maybe. It would have been smart to learn about Delphi and new features but I just went ahead as normal missing lots of things that would help me in future years, like today for example. :) Regards, Ryan Joseph ___ fpc-pascal maill

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ryan Joseph
ve used abstract classes, dynamic method invocation and more recently interfaces to workaround. Don’t tell me this has been around for 20 years now I just never knew about it. ;) I should have asked sooner that’s for sure. Thanks! Regards, Ryan Joseph _

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ryan Joseph
ildren” (TClassB) // and always returns a reference to itself because the children // often need to know about the parent also IClassA = interface procedure ClassDidThis (parent: TClassA; action: integer); end; Regards, Ryan Joseph _

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ryan Joseph
nit) so that’s why I’m seeing if there’s a better way. However I think I like your idea of using them in conjunction with the uses in the implementation instead of my "abstract class" solution. Thanks for the tip. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ryan Joseph
ys? It seems like a practical and efficient solution that requires lots of extra work in design or typecasting/interfaces. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A better way?

2016-04-15 Thread Ryan Joseph
able in each function instead of typecasting is perhaps more work but maybe I’m not getting it. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A better way?

2016-04-15 Thread Ryan Joseph
nits is preferable to typecasting ugliness. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A better way?

2016-04-15 Thread Ryan Joseph
B; end; function TClassAHelper.aClassBObject: TClassB; begin result := TClassB(FClassBObject) end; procedure TClassA.SomeProc; begin aClassBObject.OtherProc; end; end. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.

Re: [fpc-pascal] A better way?

2016-04-15 Thread Ryan Joseph
B]" to “TClassB" or throws an error if the identifier TClassB is not found value.DoSomething(self); end; end. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ryan Joseph
refer using type casting or abstract classes more than mixing 2 mutually exclusive classes into one unit even though they may have dependancies on each other. Editing and navigating the files would be confusing for one since there’s no obvious name to use for the file now. Rega

Re: [fpc-pascal] A better way?

2016-04-15 Thread Ryan Joseph
> On Apr 15, 2016, at 6:26 PM, Ryan Joseph <r...@thealchemistguild.com> wrote: > > I remember trying to doing pre-parser type things using macros but the think > the conclusion is they don’t work by just replace text like in C. > > I’m trying an example like this but

Re: [fpc-pascal] A better way?

2016-04-15 Thread Ryan Joseph
asting is not so bad. :) Sure enough but it would even better if the compiler was more friendly here. If there was a good pre parser in FPC I’d just make some custom syntax but that’s not an option either as far as I know. Regards, Ryan Joseph _

Re: [fpc-pascal] A better way?

2016-04-15 Thread Ryan Joseph
ike this but getting errors and even crashing the compiler (seg faults). Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Pointer hashing

2017-01-31 Thread Ryan Joseph
e > integrity, and hashing a pointer does not meet none of this goals as it is > process wide unique (no collisions) and its size is the fastest compare > operation (most architectures). Regards, Ryan Joseph ___ fpc-pascal maillist

Re: [fpc-pascal] Parameterless constructors are not allowed in records or record/type helpers

2017-02-07 Thread Ryan Joseph
lf parameter and the "static" disables that. That's > why. > > Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Parameterless constructors are not allowed in records or record/type helpers

2017-02-05 Thread Ryan Joseph
Why is this restriction in place and what are the alternatives if any? Some times I want to just provide a method that sets default values for a record without any parameters but FPC doesn’t let me for some reason. Regards, Ryan Joseph

Re: [fpc-pascal] Parameterless constructors are not allowed in records or record/type helpers

2017-02-05 Thread Ryan Joseph
> On Feb 5, 2017, at 3:27 PM, Sven Barth <pascaldra...@googlemail.com> wrote: > > constructor with a default parameter. How? never heard of this. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Parameterless constructors are not allowed in records or record/type helpers

2017-02-05 Thread Ryan Joseph
00014.4.1 > (it's the same for any kind of routine: function, procedure, method, > constructor...) Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Parameterless constructors are not allowed in records or record/type helpers

2017-02-05 Thread Ryan Joseph
wrote: > > Oh, well, it was worth a shot... Alternatively you could declare a class > function named Create that returns an instance of the record. Even Delphi is > using that for Rtti.TRttiContext. Regards, Ryan Joseph ___ fpc-pasc

[fpc-pascal] Pointer hashing

2017-01-29 Thread Ryan Joseph
x := Power((x shr 16), x); result := x; end; Thanks for any ideas you have. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Overriding generic methods

2017-02-09 Thread Ryan Joseph
TList; TObjectList = class (TObjectListAbstract) procedure Add (value: T); override; end; Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-pascal] Overriding generic methods

2017-02-10 Thread Ryan Joseph
> try Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Writeln in threads

2017-02-17 Thread Ryan Joseph
Is writeln thread safe? I’m getting some strange crashes and I’m curious if they’re related to calling writeln on multiple threads. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

[fpc-pascal] Drawing bitmap by pixel

2017-01-19 Thread Ryan Joseph
I’d like to draw a bitmap pixel by pixel then save to disk but I can’t understand the docs available online. I know there’s a BGRABitmap class with direct pixel access but I wasn’t able to find the unit in my FPC distribution.I used the image canvas before to draw bitmap fonts so I have this code

Re: [fpc-pascal] Drawing bitmap by pixel

2017-01-19 Thread Ryan Joseph
> On Jan 20, 2017, at 8:31 AM, Ryan Joseph <r...@thealchemistguild.com> wrote: > > Thanks guys, > > Here’s the new program based on your example but it still just outputs a pure > black image. never mind! The max color value is 65535. I thought it was 1.0 or 255. Got

Re: [fpc-pascal] Drawing bitmap by pixel

2017-01-19 Thread Ryan Joseph
writer); end; Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Array of const and generics

2017-03-02 Thread Ryan Joseph
TCollection; constructor TCollection.Create (args: array of const); begin // ERROR: args[0] is not the type we specialized for. can’t typecast either. if args[0].vtype = vtinteger then Add(T(args[0].vinteger)); end; procedure TCollection.Add (a: T); begin end; Regards, Ryan

Re: [fpc-pascal] Array of const and generics

2017-03-02 Thread Ryan Joseph
ynamic array as a parameter so I was always using array of const. Thanks, learning more new things again! Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Cross platform mobile development

2016-09-06 Thread Ryan Joseph
that could be made to work with FPC or if not something more similar than not. iOS from Free Pascal works but Java is more complicated from what I’ve been learning. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Cross platform mobile development

2016-09-07 Thread Ryan Joseph
ent in FPC so it wasn’t that useful. I think the forms do this but I haven’t found out yet. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cross platform mobile development

2016-09-07 Thread Ryan Joseph
looks easiest because Android seems like it’s going to be hard to get working as well as iOS. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] NSTextStorage.paragraphs

2016-09-27 Thread Ryan Joseph
llist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Build script on Windows

2016-10-09 Thread Ryan Joseph
in the command prompt and this is coming from a UNIX user. ;) Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Interface performance

2016-11-11 Thread Ryan Joseph
se track of what the type actually is. In my first test this didn’t happen and I was able to use an interface as a type then cast it to an object, pass to a function and call a method. In the 2nd example the variable went from a couple classes first and died at the

Re: [fpc-pascal] Interface performance

2016-11-11 Thread Ryan Joseph
the purpose of this is and why it’s even useful. > On Nov 10, 2016, at 6:45 PM, Ryan Joseph <r...@thealchemistguild.com> wrote: > > Some times when I want to communicate with a class I don’t have full scope > access to I’ll use interfaces and the Supports function to call a metho

Re: [fpc-pascal] Interface performance

2016-11-11 Thread Ryan Joseph
be that’s the problem? Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Interface performance

2016-11-11 Thread Ryan Joseph
. Maybe the better question is should I ditch CORBA in favor or COM? Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Interface performance

2016-11-11 Thread Ryan Joseph
at’s there to be freed? All these crashes I’m getting suggest memory is being trashed by the compiler at some point without my knowledge. I never explicitly allocate an interface like an object so there’s nothing to manage in my mind. Regards, Ryan Joseph

Re: [fpc-pascal] Interface performance

2016-11-11 Thread Ryan Joseph
MyInterface: IMyInterface; begin MyObject1 := TMyObjectClass.Create; MyInterface := MyObject1; MyInterface.MyProc; MyObject2 := TMyObjectClass(MyInterface); MyObject1.Free {OK for CORBA - will cause an exception in COM} {MyObject1, MyObject2 and MyInterface are now

Re: [fpc-pascal] Interface performance

2016-11-11 Thread Ryan Joseph
e. MSEide even has built-in support to do just > that (generate smaller GUID values of about 6 characters long). I’m not sure all Supports does but I didn’t test shorter strings yet. I think it does more than just compare strings though. Maybe I’ll try that later thanks. R

Re: [fpc-pascal] Interface performance

2016-11-11 Thread Ryan Joseph
me than the actual sorting so it’s clearly not a good solution. More on this tomorrow until I give up for certain. :) Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Interface performance

2016-11-10 Thread Ryan Joseph
for high performance situations. Is there a better way to do this or should I not use interfaces like this in FPC? Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-pascal] C translation question

2016-10-22 Thread Ryan Joseph
ns the for loop even but the fact it requires an explanation makes my worry about how easy it is to mess up. :) Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] C translation question

2016-10-24 Thread Ryan Joseph
> / (verty [j] - verty [i]) + vertx [i])) > c = !c; > >j = i; >i = i + 1; > } > > return c; > } Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] C translation question

2016-10-22 Thread Ryan Joseph
.y - self[i].y) / (self[j].y - self[i].y) + self[i].x) then c := not c; end; result := c <> 0; end; Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org ht

Re: [fpc-pascal] Interface performance

2016-11-12 Thread Ryan Joseph
w. I did learn that generics could clean up the problem further but I need to adapt more code to make that work easily and removing the constant Support calls is good enough to put my mind at ease. :) Regards, Ryan Joseph ___ fpc-pascal maillist

Re: [fpc-pascal] Interface performance

2016-11-11 Thread Ryan Joseph
o use “as” or Supports here and it defeats the purpose ObjInt := Arr.GetObject(0) as IMyInterface; Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Build script on Windows

2016-10-11 Thread Ryan Joseph
rk so I guess I need to add that myself but I’m struggling trying to figure out the command prompt program. Copy and paste should be easier than this. Is there another terminal that Windows users like? I really don’t understand why you can’t just paste or select text like you would in any other termi

Re: [fpc-pascal] For..in enumerator for generic records?

2016-12-01 Thread Ryan Joseph
to do this however). Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] For..in enumerator for generic records?

2016-11-29 Thread Ryan Joseph
I have a generic record I would like to enumerate using for..in loops. Is this even possible? I tried briefly and it wasn’t clear this was possible so I thought I’d ask first. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
ides an enumerator. > > Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
ing a record instead of a class because I want it to be stored on the stack. It’s trivial to just enumerate the array inside the record but I wanted to try the more elegant solution of making an enumerator for the record. Regards, Ryan Joseph

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
yan Joseph <r...@thealchemistguild.com> wrote: > > There’s a class nested inside a class?? I never saw that before. What are all > the inlines for btw? Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
> On Nov 30, 2016, at 6:22 PM, Marco van de Voort <mar...@stack.nl> wrote: > > * (for..in) Enumerators in records Where’s an example of this? I’m trying it with a generic record and I can’t it to compile so I’m not sure if this is supported or not. Regards,

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
they’re necessary for generics I just learned but nested classes feel messy. Is there at least some namespace protection? That would be a benefit I suppose if the class was only ever used inside that class but a unit may be a better option in that ca

[fpc-pascal] Untyped var params

2017-01-04 Thread Ryan Joseph
. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Untyped var params

2017-01-04 Thread Ryan Joseph
ldn’t I be able to assign to the param and return it back to the caller? In your example how could I return 5 to “i” inside GetSomething? Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

  1   2   3   4   5   6   7   8   9   10   >