Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Re: Parameter passing oddities
« Last post by KodeZwerg on Today at 03:41:49 pm »
Correct.
IKR.  :D
Thaddy says yes, so I'll accept that and leave it at it.
Cool that since 2 pages, where almost everyone told same, me included, gets ignored.

Just for fun
Ask your AI better questions, like in what relation are the arguments or what are your "legal" choices to play with them.
Ask your AI if should be forbid to write to a "var/out" variable.
Ask your AI for a demo that handle all your wishes, I am curious.
2
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by KodeZwerg on Today at 03:24:20 pm »
[sarcasm]
...blame FPC that it doesn't work...
dont we all do this from time to time when something seems to be unlogic and work not as excepted, ofc its fpc's fault since I am purrfect  ;D
[/sarcasm]

Anyway, congratulations paule32 to find out that your way is a dead end  :-[
At least you learned something about binary executable file structures even when I think it's from time to time misunderstood, wrong interpreted or wrong expressed.

As mentioned very early by me, if filesize is your only concern, Pascal is the wrong horse to ride with.
3
General / Re: Parameter passing oddities
« Last post by Nitorami on Today at 03:22:01 pm »
Just for fun, I asked Microsoft's Copilot for its opinion. Here is the response.

Certainly! Let’s analyze the provided Pascal code:

Code: Pascal  [Select][+][-]
  1. procedure add(const a, b: integer; var c: integer);
  2. begin
  3.   c := a + b;
  4. end;
  5.  
  6. var
  7.   C1, C2, C3: integer;
  8. begin
  9.   add(C1, 8, C1);
  10. end.

The code defines a procedure called add that takes two constant parameters (a and b) and one variable parameter (c). The procedure adds a and b and assigns the result to c.

However, there is an issue with the code. In Pascal, a constant parameter cannot be modified within the procedure. The line add(C1, 8, C1); attempts to modify the constant parameter C1, which is not allowed.

To fix this, you should either change the parameter c to be a variable parameter or avoid modifying C1 within the procedure.
4
General / Web Applications with Pascal
« Last post by Nate897 on Today at 03:17:43 pm »
Hey guys  8) 

I recently considered using FPC for web services.

I found this interesting video on the Internet, and found it amusing, and I think it raises good points.

There ideas are expressed better than words. Basically it says that it sounds absurd to convert a lower-level, statically typed, etc. language to a higher level one, and that important strengths of Pascal are lost, and that some comparisons are nonsensical, among other things.

I think nobody got to answer my other topic and it was erased ? I don't understand. If it's really necessary I will remove the link. It is really harmless, not SPAM, any type of promotion or things like that. It speaks better than words, and is just about 5 minutes long.

What do you guys think about the subject? Please discuss.
5
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by paule32 on Today at 02:41:34 pm »
I will revert the misunderstanding comment, and I will apologies me.
I was on first step with study the internals of FPC.
I was new to 64-Bit Microsoft Windows programming in assembly.

This depends in different ABI call's and API function's for
the different kind of CPU's and Operating System.
6
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by rvk on Today at 02:37:13 pm »
But I think, this is a thing that the TVmt struct grounded.
Because I write earlier: I use my own RTL.
So with the standard RTL it works correctly...
and you blame FPC that it doesn't work with your custom RTL %)
7
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by paule32 on Today at 02:29:58 pm »
@rvk:
nono, ...
I can import C functions from external DLL files.
I can NOT import PAS functions from FPC created DLL files.

But I think, this is a thing that the TVmt struct grounded.
Because I write earlier: I use my own RTL.

As such, I completely remove RTTI, and Debug stuff using the SED tool.
Did you don't look to the build.bat ?
8
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by rvk on Today at 02:25:31 pm »
So, you came to the conclusion that FPC your RTL really doesn't support DLL import's at current time  ::)

That's something completely different  ;)
9
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by paule32 on Today at 02:17:19 pm »
@Thaddy:
this does NOT depend on the original FPC, and RTL !!!   ;D
10
FV/Textmode IDE / Surf Units in Text Mode Ide
« Last post by mosquito on Today at 01:58:21 pm »

Using fp ("Text Mode Ide"), when there is a compilation error, I can navigate from the 'Compiler Messages' window to the affected unit.


So, is there a keyboard shortcut to be able to do this from the code editor? . It would be Lazarus-like behavior when doing Ctrl + LM on the name of a unit, procedure, etc
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018