Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-10 Thread Darius Blaszyk
Hi Ryan, You can switch to the new branch. See here how to do it: https://backlog.com/git-tutorial/branching/switch-branch/ Not sure though if you need to stash your local changes first to prevent losing them. Rgds, Darius On Thu, Oct 11, 2018 at 4:08 AM Ryan Joseph wrote: > > > > On Oct 11,

[fpc-pascal] Indexing into records using [] property

2018-10-10 Thread Ryan Joseph
I’d like to know if there is a solution to the problem of indexing into records using [] properties. In the example below I have an array of records (a dynamic array for the example) and I’d like to use the [] property to index into the values. The problem is because the array holds records I n

Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-10 Thread Ryan Joseph
> On Oct 11, 2018, at 4:41 AM, Darius Blaszyk wrote: > > I committed today the generic code for setting up a specific GL version and > additional parameters. What remains now is implementing the platforms. Anyone > interested in helping out is welcome! I will start with GDI over the coming >

Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-10 Thread Darius Blaszyk
I committed today the generic code for setting up a specific GL version and additional parameters. What remains now is implementing the platforms. Anyone interested in helping out is welcome! I will start with GDI over the coming days. The Linux and Mac implementations will hopefully follow soon wi

Re: [fpc-pascal] any free pascal standard function to compare a, string against an array of string?

2018-10-10 Thread Ingemar Ragnemalm
You mean something faster than a for-loop? Like a hash table? I don't know of any hash table in the standard library but there are some in the class library: https://www.freepascal.org/docs-html/fcl/contnrs/tfpstringhashtable.html https://www.freepascal.org/docs-html/fcl/contnrs/tfphashlist.h

Re: [fpc-pascal] any free pascal standard function to compare a string against an array of string?

2018-10-10 Thread David Copeland
Dennis, Look at AnsiMatchStr in strutils. Dave. On 2018-10-10 11:11 a.m., Dennis wrote: > is there a function like >   if    IsOneOf('subtext', ['abc','cde','fecg','hig'])   then begin > ... > end; > > is there such a function IsOneOf(TheSubString : String; const > TheStrings : array of String)

Re: [fpc-pascal] any free pascal standard function to compare a string against an array of string?

2018-10-10 Thread OBones
Hello, I would use IndexStr from StrUtils: https://www.freepascal.org/docs-html/rtl/strutils/indexstr.html   if IndexStr('subtext', ['abc','cde','fecg','hig']) >= 0  then Regards Dennis wrote: is there a function like   if    IsOneOf('subtext', ['abc','cde','fecg','hig'])   then begin ... e

Re: [fpc-pascal] any free pascal standard function to compare a string against an array of string?

2018-10-10 Thread Michael Van Canneyt
On Wed, 10 Oct 2018, Dennis wrote: is there a function like   if    IsOneOf('subtext', ['abc','cde','fecg','hig'])   then begin ... end; is there such a function IsOneOf(TheSubString : String; const TheStrings : array of String) : Boolean ? if yes, what is its name and unit? IndexStr in s

[fpc-pascal] any free pascal standard function to compare a string against an array of string?

2018-10-10 Thread Dennis
is there a function like   if    IsOneOf('subtext', ['abc','cde','fecg','hig'])   then begin ... end; is there such a function IsOneOf(TheSubString : String; const TheStrings : array of String) : Boolean ? if yes, what is its name and unit? Dennis __

[fpc-pascal] Option in Makefile to clean installed compiled units

2018-10-10 Thread Fr0sT
Hi Sven, First there is no specific option to clean what is dice with "install", because INSTALL_PREFIX might point to a non empty directory (e.g. / or /usr on *nix systems). In addition to that "make all" does not care about what has been copied with "install". What could be however is that y

Re: [fpc-pascal] Option in Makefile to clean installed compiled units

2018-10-10 Thread Sven Barth via fpc-pascal
Fr0sT schrieb am Mi., 10. Okt. 2018, 13:39: > Hi all, > > when building FPC from sources, I couldn't find a command to cleanup > unit binaries copied to common .\units\ dir by "install" command. > Without this step build process fails. > > I build FPC from sources with the following layout: > > .

Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-10 Thread Darius Blaszyk
Op wo 10 okt. 2018 13:41 schreef Anthony Walter : > A fallback should not be created if the initialization or requested > context type could not be created. It should just fail with a reason, then > allow the programmer to decide what or even if there should be a fallback. > __

Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-10 Thread Anthony Walter
A fallback should not be created if the initialization or requested context type could not be created. It should just fail with a reason, then allow the programmer to decide what or even if there should be a fallback. ___ fpc-pascal maillist - fpc-pasca

[fpc-pascal] Option in Makefile to clean installed compiled units

2018-10-10 Thread Fr0sT
Hi all, when building FPC from sources, I couldn't find a command to cleanup unit binaries copied to common .\units\ dir by "install" command. Without this step build process fails. I build FPC from sources with the following layout: .\fpc-min - FPC release installed from distrib .\FPC - sou

Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-10 Thread Darius Blaszyk
That a good idea Ryan. The only thing is that we should think about providing some sort of a fallback when the record is not setup entirely or incompatible settings are used. Op wo 10 okt. 2018 10:44 schreef Ryan Joseph : > > > > On Oct 10, 2018, at 2:35 PM, dhkblaszyk wrote: > > > > I created a

Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-10 Thread Ryan Joseph
> On Oct 10, 2018, at 2:35 PM, dhkblaszyk wrote: > > I created a new branch called GL-version. Accepting pull requests! 😉 > What do you think about simply providing a record with context options which is a param to GLPT_CreateWindow and stored in GLPTWindow? That’s by far the easiest solut

Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-10 Thread dhkblaszyk
I created a new branch called GL-version. Accepting pull requests! 😉  Verzonden vanaf mijn Samsung-apparaat Oorspronkelijk bericht Van: Ryan Joseph Datum: 10-10-18 05:23 (GMT+01:00) Aan: FPC-Pascal users discussions Onderwerp: Re: [fpc-pascal] GLPT v0.1.1 released