[fpc-pascal] parameter list declaration

2017-03-31 Thread Mr Bee via fpc-pascal
Hi all, I'm looking for official reference for function/procedure parameter list declaration in Pascal. I found this:  http://www.freepascal.org/docs-html/ref/refse91.html but I think it's not really clear, especially for newbie. For example, when exactly we need to use/put ; (semicolon)

[fpc-pascal] Bls: WebAssembly Target

2017-04-12 Thread Mr Bee via fpc-pascal
Pada Sabtu, 18 Maret 2017 0:54, Michael Van Canneyt menulis: You'll design a web app in the lazarus IDE (or Delphi IDE, for that matter). The app will be compiled to Javascript. Current thinking is that that there will be 2 "modes": - "Free" Mode, where the CSS

[fpc-pascal] Bls: Bls: WebAssembly Target

2017-04-13 Thread Mr Bee via fpc-pascal
Pada Kamis, 13 April 2017 13:22, Michael Van Canneyt menulis: > Seriously? Where can we try or test this? This is really a great news! It > reminds me of Morfik. :) Morfik has been, since day 1, the inspiration for this. I knew it! ^_^ > Hope the development will

[fpc-pascal] named parameter

2017-05-27 Thread Mr Bee via fpc-pascal
Hi, As Pascal mostly well known as a safe, easy to read, and elegant language, don't you think Pascal needs named parameter? I mean for ALL kind of parameters, not just for Variants. When you have a function with many parameters having default values, you know that named parameter is desirable.

[fpc-pascal] Bls: named parameter

2017-05-30 Thread Mr Bee via fpc-pascal
via fpc-pascal wrote: > >> 2017-05-27 9:54 GMT+02:00 Michael Van Canneyt <mich...@freepascal.org>: >>> >>> >>> >>> On Sat, 27 May 2017, Mr Bee via fpc-pascal wrote: >>> >>>> Hi, >>>> >>>> As Pascal mostly wel

[fpc-pascal] compiler option for $J directive

2017-10-07 Thread Mr Bee via fpc-pascal
Hi, Is there any FPC command line option for writable constanst directive {$J} or {$WRITEABLECONST} ?  Since I knew this directive, I always set it to {$J-} (because {$J+} is ridiculous). However, sometimes I forget to put it in to my source code. So, I'd like to put it in to a batch script

Re: [fpc-pascal] JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

2017-10-14 Thread Mr Bee via fpc-pascal
Wow… that's really a great news, Michael! Thank you. I can't wait for it to be released officially. :) 2017-10-14 5:22 GMT+07:00 Michael Van Canneyt : > > > On Fri, 13 Oct 2017, Luiz Americo Pereira Camara wrote: > > Hi, >> >> I'm developing an app were the client is

Re: [fpc-pascal] JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

2017-10-15 Thread Mr Bee via fpc-pascal
2017-10-15 17:25 GMT+07:00 Michael Van Canneyt : > > Hello, > > If you want the latest preview and demos to play with: > > https://www.freepascal.org/~michael/pas2js-demo-0.8.28.zip > > The component developer is doing fantastic work with the visual > components, and it

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-15 Thread Mr Bee via fpc-pascal
2017-10-16 3:14 GMT+07:00 James Richters : > > Whether CRT is using Extended ASCII or Unicode, as far as I can figure > out, it's impossible to display box characters with the CRT unit at all. > Long story short: CRT unit doesn't work at all on Windows, but it

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-16 Thread Mr Bee via fpc-pascal
2017-10-16 19:03 GMT+07:00 James Richters : > > > I’m curious how the CRT unit handles the Extended ASCII codes on Mac and > Linux… All versions should be the same for cross platform compatibility. > I don't know the underlayer library being used by CRT unit on

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-14 Thread Mr Bee via fpc-pascal
2017-10-14 14:12 GMT+07:00 : > > Thanks for that lengthy description of the problem, much better than OP's > just describing output as rubbish, or something similar. > since char is a single byte type a large value will just get truncated. If > you turn on range checking it

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
Thank you, both to Leledumbo and Sven. Will this patch be available in the next FPC v.3.0.4 release? –Mr Bee Pada Selasa, 10 Oktober 2017 04.44.44 WIB, Sven Barth via fpc-pascal menulis: Am 08.10.2017 22:24 schrieb "leledumbo via fpc-pascal"

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
2017-10-08 23:17 GMT+07:00 Marcos Douglas B. Santos : > > Most developers are using single .inc file that contains all > directives for the whole project. > Well, I don't like such approach. I prefer using my own shell script that I can configure for many purposes and

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
2017-10-10 13:28 GMT+07:00 Marco van de Voort : > > Since it is already largely uploaded, no. We are only waiting on some > targets. > I thought such a minor fix that don't break any codes could be included. -- Regards, –Mr Bee

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
2017-10-10 16:21 GMT+07:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > They were used mainly back at TP times to have procedure local static > variables (cause that is how they behave as inside procedures). > Can we make the {$J-} as default in fpc and objfpc mode for the next

[fpc-pascal] CRT unit and Windows' terminal

2017-10-12 Thread Mr Bee via fpc-pascal
Hi, I want to create console app that's using box drawing characters from unicode. Before CRT unit is used, it's all fine and my program could draw table beautifully. But once I put CRT unit, those characters became garbages. But strangely, it's only happen on Windows' terminal (win10). I tried

[fpc-pascal] working with lldb

2018-05-05 Thread Mr Bee via fpc-pascal
Hi, Is there a way to make LLDB able to read and display Pascal's string correctly? At least, ansi string. I'm now using this option '-glpsw3 -godwarfcpp'. Did I miss some options or something? Thank you. Regards, –Mr Bee ___ fpc-pascal maillist -

Re: [fpc-pascal] working with lldb

2018-05-05 Thread Mr Bee via fpc-pascal
Nothing fancy actually. I just want to watch some string variables while debugging, but LLDB just gives me like some kind of array with garbage values. Not useful at all. I'm using FPC v.3.0.2 with VS Code and LLDB (as VS Code plugin) on Mac. –Mr Bee Pada Sabtu, 5 Mei 2018 17.25.58 WIB,

[fpc-pascal] -gw3 produces garbages

2018-05-25 Thread Mr Bee via fpc-pascal
Hi all, The `-gw3` with `godwarfcpp` flag for lldb produces garbages for string type or any dynamic array types. While `-gw2` only works on string but still failed on any dynamic array types. Is there a way or configuration so we can debug string and dynamic array with lldb conveniently? I'm

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-05 Thread Mr Bee via fpc-pascal
2018-04-04 16:58 GMT+07:00 Michael Van Canneyt : > >> Do you mean this: >> http://wiki.lazarus.freepascal.org/File:Lazarus-icons-lpr- >> proposal-bpsoftware.png >> ? >> > > Yes. For me, this is the direction to go in. But it's Lazarus logo. I think we should have a

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-02 Thread Mr Bee via fpc-pascal
2018-04-02 16:36 GMT+07:00 Michael Van Canneyt : > Please look at the lazarus logo/icon. It has no whiskers. > I opened lazarus.freepascal.org and I found it's using a paw as its logo. Did I miss something? Sorry… I haven't been following Lazarus news for quite a while,

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-02 Thread Mr Bee via fpc-pascal
The proposed logo is updated. What's new: - it has eye balls. - more rounded face. - more rounded ears. - more visible whiskers. Cheetah is a member of cat big family. So, of course it will look like a cat or kitten. Nothing I can do about it. Are there more suggestions? Thank you. 2018-03-31

[fpc-pascal] Proposal for new Free Pascal logo

2018-03-29 Thread Mr Bee via fpc-pascal
Hi, These days, most modern programming languages have its own logo. The logo becomes a "brand", a unique visual identity for the language. It also acts as a "trademark", a recognizable image for the language. It also helps the community to have a single visual identity to distinguish them from

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-03-31 Thread Mr Bee via fpc-pascal
2018-03-30 16:19 GMT+07:00 Ingemar Ragnemalm : > > The logo is very good, and well connected to the tradtion set by the > animated gif. The alternative would be to use a frame of the animation, or > similar sideways cheetah, but scaled up so it can have different >

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-03-31 Thread Mr Bee via fpc-pascal
2018-03-30 15:21 GMT+07:00 Michael Van Canneyt : > > I would get rid of the whiskers. > > What's wrong with the whiskers?  -- Regards, –Mr Bee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-04 Thread Mr Bee via fpc-pascal
2018-04-03 14:21 GMT+07:00 Michael Van Canneyt : > > I meant the icon it uses for the IDE. Do you mean this: http://wiki.lazarus.freepascal.org/File:Lazarus-icons-lpr-proposal-bpsoftware.png ? > A lot thinner :) > Let's see what I can do. > And here I will stop: as

[fpc-pascal] TJSCanvasRenderingContext2D's ellipse method is missing

2018-10-15 Thread Mr Bee via fpc-pascal
Hi, I'm now using pas2js v1.0.2 but I can't find `ellipse` method in TJSCanvasRenderingContext2D class. Is there a way to draw ellipse on a canvas using this version of pas2js? Thank you. Regards, –Mr Bee ___ fpc-pascal maillist -

Re: [fpc-pascal] TJSCanvasRenderingContext2D's ellipse method is missing

2018-10-15 Thread Mr Bee via fpc-pascal
This mail should be sent to pas2js list. Please ignore it. My mistake, I didn't re-check the address. I apologize. Thank you. Regards, –Mr Bee Pada Senin, 15 Oktober 2018 21.37.06 WIB, Mr Bee via fpc-pascal menulis: Hi, I'm now using pas2js v1.0.2 but I can't find `ellipse` method

[fpc-pascal] How to get ANSI code command return value?

2018-12-01 Thread Mr Bee via fpc-pascal
Hi all, I'm playing around with ANSI code (ESC sequence) on the console. Sending an escape command is trivial such as changing text's color and background. However, getting a response isn't as easy as I thought. Here's a simple test program: program ANSItest; var  s: string;begin  // send ESC

Re: [fpc-pascal] How to get ANSI code command return value?

2018-12-02 Thread Mr Bee via fpc-pascal
Pada tanggal Min, 2 Des 2018 pukul 15.59 Sven Barth < pascaldra...@googlemail.com> menulis: > > Um... The CRT unit is a raw Pascal solution?! Anyway, you can use that > unit to see how the CRT unit did it. > Nope, I don't think so. CRT unit is Turbo Pascal's legacy unit. There are some serious

[fpc-pascal] FPC-based http/s server

2018-12-10 Thread Mr Bee via fpc-pascal
Hi all, Is there any open source, maintained and updated HTTP server using FPC out there? I need a lightweight HTTP server written in FPC that supports Linux/Unix, F/CGI app, and HTTPS. It'd be better if it doesn't need external or third-party units such as Indy or Synapse, but only pure FPC

[fpc-pascal] Custom operator

2020-02-01 Thread Mr Bee via fpc-pascal
Hi all, Besides overloading available operators, could we make our own custom operator(s) in FPC? For example, I want to use ∑ to sum array values? Also other Unicode characters such as ≥, ≤, ±, ≠, etc as custom operators? I think such feature is important in this unicode era. Is it possible?

Re: [fpc-pascal] Custom operator

2020-02-01 Thread Mr Bee via fpc-pascal
, it’s all right then. Thank you. –Mr Bee Pada Minggu, 2 Februari 2020 08.32.23 WIB, Sven Barth via fpc-pascal menulis: Mr Bee via fpc-pascal schrieb am So., 2. Feb. 2020, 02:11: Hi all, Besides overloading available operators, could we make our own custom operator(s) in FPC

[fpc-pascal] $modeswitch from command line

2020-02-03 Thread Mr Bee via fpc-pascal
Hi all, Is there a way to enable a mode switches from fpc command line? Thank you. Regards, ~Bee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] $modeswitch from command line

2020-02-04 Thread Mr Bee via fpc-pascal
03.02.2020 um 23:19 schrieb Mr Bee via fpc-pascal: > Hi all, > > Is there a way to enable a mode switches from fpc command line? > Yes, using -M, however these are discarded as soon as a $Mode directive is read (just like any $Mode directive resets any $Modeswitch directive). R

Re: [fpc-pascal] $modeswitch from command line

2020-02-05 Thread Mr Bee via fpc-pascal
It’s a great info, Jonas. Thank you. I didn’t know FPC has -M option for $modeswitch. Based on the official document¹, the -M option is to select language modes, not language features. I know changing language mode would reset mode switches. It’s no problem for me because I wrote the code and I