> I found this: http://www.freepascal.org/docs-html/ref/refse91.html but I
think it's not really clear, especially for newbie
Newbies often skip http://www.freepascal.org/docs-html/ref/refli5.html so
they can't read the diagrams used in all later sections.
> Compare that to official document
> However i would like to be able to do a partial text search on the
strings, prefeably with a result as a list of matching string/object
pairs but getting an index to the first matching pair would be fine. The
match only has to be done from the first character of both strings, so a
complex
> Is there a way to call an Exe (previously installed, no problem with that)
to interact with an Exe, working in IE and Chrome?
Not from client side AFAIK. You'll need to create a local server side app,
let that one executes the exe and response back to the client (if needed).
--
View this
> Has anyone converted these to Pascal before or having some similar I could
look at?
I don't usually do the matrix calculation myself, I delegate that by calling
OpenGL functions in proper order. However, just a few days ago I found this:
> I do not understand what -iVSPTPSOTO is...
That's what happened when the compiler cannot be called by make. Watch:
> make: -iVSPTPSOTO: Command not found
it's a parameter list for fpc to get (from fpc -h):
-i Information
...
-iSO Return compiler OS
-iSP Return
> The component developer is doing fantastic work with the visual components,
and it starts to look really good.
visual? how and/or what does it output? will be interesting if ExtPascal
dream can be revived somewhat.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
Marcos Douglas B. Santos wrote
> I didn't found... In this path \packages\googleapi\examples only
> exists \generator directory. :(
>
> Trunk, rev 37453.
Try this, it wasn't running well due to RTTI changes back then, but probably
works now:
> Would it be possible to do this via a Lua shim?
How is it even related with that?
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
> I am stuck at the keyword vector.
>
> How is it translated into free pascal?
It's hard, you must create additional wrapper that exposes simpler type
(pointer or array of pchar) OR make wrapper for the vector methods and
simply declare it as an opaque pointer. std::vector is template/generic
> fpreport has been committed to FPC SVN: packages/fcl-report.
> It should compile on windows, linux, freebsd and darwin.
From the wiki:
"An important use-case was a Linux server running in a container without X
libraries installed"
Yep, yep, yep. Finally I can replace my old statically
> Hi, a newbie question but the docs aren't clear on how to say that I
want to use the 64-bit compiler, not the i386
fpc -Px86_64 -Twin64
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist -
> is there something simliar to Java's java.io.File or java.nio.Path for
FPC? Google makes me think there isn't...
No, there isn't. Welcome to hybrid paradigm programming language. It's not
difficult to make an OO wrapper for File* SysUtils functions or even the
classic ones in System unit,
> When I'm in doubt
about the conditional defines, I either google or take advantage of
Lazarus: in project->options I select the target CPU family and the
target processor, and then I use "show all options" to see which defines
are set.
fpc -vc is your friend here.
--
Sent from:
> Does someone knows a component to use OpenDocument (.odt) files as
templates to generate a .odt output file given some data?
FPVectorial seems to support it:
http://wiki.freepascal.org/fpvectorial_-_Text_Document_Support
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
> or even neural network libraries written in Pascal?
Try contacting schuler in Lazarus forum.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
> Create a call that calls Application.Terminate.
I just call DumpHeap(false); instead
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
> Any ideas how to identify potential unintentional loops?
That depends on your design. Is it intended that the 3 procedures can call
each other, directly or indirectly? If no, then things are a lot easier. You
can just put on the currently entered procedure name to a map shared by the
3 (or just
> Has anybody come across https://wiki.termux.com/wiki/Main_Page which I've
seen mentioned elsewhere?
Yes, that's current terminal emulator in my android devices.
We can contribute just by making pull request here:
https://github.com/termux/termux-packages/pulls
--
Sent from:
> My thinking was that because variables can assign values at declaration it
would be reasonable to assume that record fields could have default values
which would be assigned at declaration. It sounds like a natural extension
of the syntax that already exists.
Those are two different things
> Is there a basic linked List object for Lazarus?
https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/src/glinkedlist.pp
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist -
> So it can’t be done?
Only through macro ATM, I believe. Note that case statement body does NOT
expect a set (it expects values, list of values and/or range of values),
despite the very similar look (missing enclosing angle brackets only), hence
the inability to do what you want.
--
Sent
> The problem is that the WS could take so long time that the entire request
will broke with a "time out".
I suggest making the request handling asynchronous instead. So request will
only register and return some unique id to the requester, then do call to
the WS in background thread. An endpoint
> Is there a complete list of packages available somewhere?
$ svn co https://svn.freepascal.org/svn/fpc/trunk fpc
$ cd fpc/packages
$ ls
tadaaa...
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist -
I used to play with this a bit: https://github.com/lysee/lysee
It's written by a Chinese programmer and I remember reading his page about
the language using google translate :p
The github page is without documentation, but its older google code page is
still accessible (just hope he didn't break
> Does anyone know of a minimal example or pseudo code or just an
explanation?
Python actually provides a Python.h that you can convert to a Pascal unit.
But inside, it includes a bunch of other header files and conversion might
be a tedious task. If you made it, though, simply call:
> Never mind I have it figured out. You have to add the path to
> the /etc/fpc.cfg file, such as:
You can do it from command line, too. In fact, if you already have it
working from Lazarus, simply open Project Options->Show Options->Command
Line Parameters tab, copy the content for your fpc
> Why?
At least pointer size takes double space, multiply it with every instances
1.5x bigger is not impossible.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
> Is it possible to use FPC for linking only?
I've asked this in the past with straight "no" answer.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
> i think i'm still waiting for the string "length byte" becoming a "length
word"
or possibly a "length long" so the speed of pascal strings can be reacquired
-=B-)
Ansi and any other dynamic strings already have length longint that allows
2GB string length with O(1) length retrieval.
--
> It seems that session management create one separate session by each module
That's right but should be OK, as the session is created based on cookie,
which if already exists, will be loaded instead of created. If memory serves
right, I remember you should set one or a few of these:
*
> But *if* I had to decide I would pick #1, cause then there wouldn't be
> the chance to break existing code if a user decides to add a constructor
> to their record and some other code relies on there not being a
> constructor. Also due to the syntax
>
> acording example I found in FPC examples directory,
Check the one here instead:
$(fpcsrcdir)/packages/fcl-fpcunit/src/demo/consolerunner/testrunner.pp
It depends only on FPC units. I guess you're looking at examples from
Lazarus directory instead of FPC.
--
Sent from:
> https://github.com/daar/GLPT
This is more GLFW rather than GLUT. Good, I prefer it this way as I have
much greater control with regards to the event handling.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist
> but that seems to only work with Lazarus.
The unit is part of LazUtils package. It has no dependency on other packages
but indeed can't be used as a standalone unit, you need other units from the
same package but that's all.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
> I am curious to know if there is someone out there that have tried to
> use Docker (https://www.docker.com) containers to build fpc applications?
Search docker hub, you will find a lot of them, either fpc only, with
lazarus, single target or even cross compiling ready.
--
Sent from:
> Please provide a real example of a compiler output, cause I can't find
"Wrong ppu found" in the sources.
I think what he meant is:
$ grep -i 'wrong ppu version' -r *
pkgutil.pas: Comment(V_Error,'Wrong PPU Version
'+tostr(ppuversion)+' in '+PPUFn);
utils/ppufiles.pp: Error('Error:
> How are the FPC RTL documentations generated? I wanted to see if I could
generate .docsets files from them also.
A starting point: https://wiki.freepascal.org/FPCDocs_Tutorial
I believe that "write me" part is not far from calling make with certain
options.
--
Sent from:
> I know I can use -XM to set another function name besides "main" but then
how do I call back the original function "main" later?
I quickly analyze the generated assembly when you don't pass -XM:
.globl main
.type main,@function
main:
.globl PASCALMAIN
.type
> I meant to say that, without a .desktop file, the app is not
double-clickable.
This is DE/WM/FM dependent, you app must already have execute bit set anyway
(otherwise, it won't be executable even through CLI). Some allow double
clicking, some not, some configurable.
--
Sent from:
> Or create different packages for different distros ?
If you can afford the maintenance burden, this is the best that every
specific distro user will love. Otherwise, just provide a compressed archive
with README inside.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
> I remember something like this in RTTI though but can't find it in your
docs yet for generics.
{$mode objfpc}
uses
typinfo;
generic procedure Add;
begin
if TypeInfo(T) = TypeInfo(Integer) then WriteLn('an integer');
if TypeInfo(T) = TypeInfo(String) then WriteLn('a string');
end;
> But before I proceed I would like to check here if something like this
already exists
None that I know of for native Pascal. As I no longer use ORM, Sqitch does
the job for me these days. Basically it's like a git for database schema
(surely you can do CRUD as well there, but it's mainly for
> I am looking for a simple to use non-visual graphing library to produce x-y
plots in a raster file format (similar to how pyplot works). Rather than
developing something from scratch or writing a wrapper to GNU plot
(additional dependency), I was hoping something like this already would
exist
> Since dmustache (part of mORMot) fails the official mustache tests and did
not work
> on the platform I needed it for, I wrote my own implementation.
I do remember it didn't pass all the tests, but still works for my needs so
I let it be.
> The result has been committed to
44 matches
Mail list logo