Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Re: Generics - correct syntax
« Last post by VisualLab on Today at 01:32:11 pm »
Did you actually read the documentation? Because the differences are well documented.
I smell a bit of too lazy to read...
It is chapter 8 of the language reference guide... >:D
You can come out of the corner if Michael says so.... :D ;D :o

Of course. But I don't think I understood much of this description :)

If there's anything not clear, report back. Otherwise disappear in a corner of shame.
You can come out of the corner if Michael says so.... :D ;D :o

It's good to know who is an expert on generic types in Free Pascal and who to ask if anything is unclear :)
2
Third party / Re: Ho Ho Ho IntraWeb in Lazarus!!!
« Last post by VisualLab on Today at 01:28:20 pm »
It is not special, just old... You don't need it.

Is it no longer suitable for anything? I'm asking because I once (in Delphi) used this library for my own needs.
3
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by paule32 on Today at 01:23:18 pm »
UPDATE  ;D

I came to the conclusion. that FPC really don't support DLL import's at current time.
Using C/C++ DLL files are much cleaner.
But I stay tuned on the project...

It is very interesting what you can simply do with Pascal.
There is a payload, okay.
But you can profit of them in later use.
4
Debugger / Re: FpDebug questions
« Last post by 440bx on Today at 01:22:53 pm »
Thank you Martin. 

Now, the "raison d'etre" of those two options makes sense.
5
Suggestions / Re: leetcode doesn’t support pascal
« Last post by codeninja on Today at 01:16:43 pm »
I didn't want to be engaged in debates whether l33t is good or bad. All I wanted to say was, Let's go and upvote pascal on l33t and any similar platforms. It doesn’t metter like you l33t or not. It’s an opportunity to promote pascal.

This topic was viewed 5633 times. If half of it went there, we would outvote go, rust and any hipster's languages. ;)
6
Suggestions / Re: leetcode doesn’t support pascal
« Last post by VisualLab on Today at 01:08:18 pm »
If I didn’t post on this forum before, it doesn’t mean I never used Pascal.
You must be thinking I'm some promoter from l33t ha ha too bad they didn't pay me.

Because users pay training companies for their services, not the other way around :)
7
Suggestions / Re: leetcode doesn’t support pascal
« Last post by codeninja on Today at 12:53:36 pm »
I took another look at the leetcode website. It just looks like some business trying to make money from people too lazy to practice programming by doing. People who are serious about learning pascal {or any other language } shouldn’t go to places Like that to begin with.

The fact that the person who started this thread has no apparent history of using pascal probably indicates that the motive is to waste our time..luring us off to another platform which is likely well populated with pascal haters to engage us..

It's not true. L33t is a good place to learn. Even FAAGs use it to interview people. You don't need money to use it. If we managed to persuade l33t to add Pascal support, it would increase Pascal's popularity. Do you need some frash blood in the community?

If I didn’t post on this forum before, it doesn’t mean I never used Pascal.
You must be thinking I'm some promoter from l33t ha ha too bad they didn't pay me.
8
Beginners / Re: Can function be used for change event
« Last post by Joanna on Today at 12:48:19 pm »
Thanks for all the insights  :)

Routing events is indeed tricky because the sender is the simple control and I need to find out what owns it to route the event to the correct place. This usually involves inspecting the parent hierarchy of the sender to find what class it came from. I can then call the change event of the class responsible for the sender and pass the sender there.

 I don’t have a lot of code inside the form itself, most of the code is located inside of classes and uses virtual methods. I also use “is” to identify what controls are and then typecast them to call appropriate virtual method.

@jamie it isn’t so much hitting return key as clicking on another control pr trying to navigate with tab keys firing off the editing done event when nothing has changed.

@thaddy yes indeed it’s possible to declare a function but getting editingdone to connect to it is another story.
The modified seems like a useful property I didn’t know about it. Unfortunately other controls don’t seem to have it. I will test it out.

The tmethod thing does that let me define new methods ?

9
General / Re: Parameter passing oddities
« Last post by Nitorami on Today at 12:42:09 pm »
Code: Pascal  [Select][+][-]
  1. procedure add (constref a,b: integer; var c: integer);
  2. begin
  3.   c := a+b;
  4.   writeln (a:8,b:8,c:8);
  5. end;
  6.  
  7. var C1,C2,C3: integer;
  8. begin
  9.   C1 := 1;
  10.   add (C1,8,C1);
  11. end.

Output: 9 8 9

As expected. Inside the procedure, the compiler will think a should be constant, but it changes, because it has the same address as c. 
Of course it is the responsibility of the programmer to handle this correctly, I don't doubt this. My question was - is it legal to do this ?

Thaddy says yes, so I'll accept that and leave it at it.
10
General / Re: Parameter passing oddities
« Last post by Thaddy on Today at 12:36:02 pm »
Correct.
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018