Re: [fpc-pascal] Freepascal CLI library

2018-01-14 Thread wkitty42
On 01/14/2018 01:15 PM, Bart wrote: On Sun, Jan 14, 2018 at 6:00 PM, wrote: really... i think most folks have a general YesNo routine that returns some value which they then use to determine which way the code flows... I used to have a general Prompt(Question: String; Allowed: TCharSet; Def

Re: [fpc-pascal] Freepascal CLI library

2018-01-14 Thread Bart
On Sun, Jan 14, 2018 at 6:00 PM, wrote: > really... i think most folks have a general YesNo routine that returns some > value which they then use to determine which way the code flows... I used to have a general Prompt(Question: String; Allowed: TCharSet; Default: Char; CaseSensitive: Boolean):

Re: [fpc-pascal] Dot syntax for types?

2018-01-14 Thread Sven Barth via fpc-pascal
On 14.01.2018 16:19, Michael Van Canneyt wrote: > > > On Sun, 14 Jan 2018, Sven Barth via fpc-pascal wrote: > >> On 14.01.2018 09:56, Michael Van Canneyt wrote: >>> >>> >>> On Sun, 14 Jan 2018, Ryan Joseph wrote: >>> I remember I heard about a mode switch that requires "type groups” (w

Re: [fpc-pascal] Freepascal CLI library

2018-01-14 Thread wkitty42
On 01/13/2018 07:28 PM, Darius Blaszyk wrote: not specific to CLI apps but are you, perhaps, thinking of CheckOptions and HasOption? No I do not look for commandline handling. Rather a CLI interaction library. Which allows to interact with the application during runtime. Similar to how sphin

Re: [fpc-pascal] Dot syntax for types?

2018-01-14 Thread Michael Van Canneyt
On Sun, 14 Jan 2018, Sven Barth via fpc-pascal wrote: On 14.01.2018 09:56, Michael Van Canneyt wrote: On Sun, 14 Jan 2018, Ryan Joseph wrote: I remember I heard about a mode switch that requires "type groups” (what are these called btw?) to use a . and be prefixed. For example: type

Re: [fpc-pascal] Dot syntax for types?

2018-01-14 Thread Sven Barth via fpc-pascal
On 14.01.2018 09:56, Michael Van Canneyt wrote: > > > On Sun, 14 Jan 2018, Ryan Joseph wrote: > >> I remember I heard about a mode switch that requires "type groups” >> (what are these called btw?) to use a . and be prefixed. For example: >> >> type >> TGLType = (GL_FLOAT, GL_UNSIGNED_BYTE);

[fpc-pascal] Change in TStrings.LoadFromFile/LoadFromStream encoding handling

2018-01-14 Thread Michael Van Canneyt
Hello, Just a heads-up. The LoadFromStream and LoadFromFile calls of TStrings have been changed. They now by default take into account encoding. This change was necessary for Delphi compatibility and to be more in line with the TStringStream.Create endocing aware constructors. If you don't

Re: [fpc-pascal] Dot syntax for types?

2018-01-14 Thread Michael Van Canneyt
On Sun, 14 Jan 2018, Ryan Joseph wrote: I remember I heard about a mode switch that requires "type groups” (what are these called btw?) to use a . and be prefixed. For example: type TGLType = (GL_FLOAT, GL_UNSIGNED_BYTE); TGLType.GL_FLOAT would be the full name (note GL_FLOAT alrea

Re: [fpc-pascal] Dot syntax for types?

2018-01-14 Thread Ryan Joseph
> On Jan 14, 2018, at 3:27 PM, Sven Barth via fpc-pascal > wrote: > > Those types are called enumerations or enums for short, the variant that > requires a point are called scoped enums and the compiler directive you're > looking for is "{$scopedenums on}" and only needs to be used for decla

Re: [fpc-pascal] Dot syntax for types?

2018-01-14 Thread Sven Barth via fpc-pascal
Am 14.01.2018 03:42 schrieb "Ryan Joseph" : I remember I heard about a mode switch that requires "type groups” (what are these called btw?) to use a . and be prefixed. For example: type TGLType = (GL_FLOAT, GL_UNSIGNED_BYTE); TGLType.GL_FLOAT would be the full name (note GL_FLOAT alread