|
|
Rage wrote: We demand : another shrubbery.
FTFY
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Sometimes. I sometimes refer generally to subroutines of any sort.
Also, if I remember correctly in Clarion, a subroutine is specifically an internal routine within a function or procedure. It only took about 25 years for C# to get this feature compared to Clarion.
modified 31-Mar-21 12:00pm.
|
|
|
|
|
I farking despise lambda functions used in that way.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
It's not a lambda as such (as I understand the term). Clarion way back in 1991 didn't have the concept of lambdas.
Clarion's routines are just subroutines embedded within parent subroutines (i.e. a procedure or function) such that they are local to their parent.
Yeah, I suppose they share some characteristics with lambdas but 'mentally' and syntactically they aren't like them.
modified 31-Mar-21 12:29pm.
|
|
|
|
|
Wow, wow, wow.. some Googling later I learned that Clarion is a 4th generation, multiparadigm programming language! I expect nothing less now!
|
|
|
|
|
Clarion... Now that's a name I have not heard in a long time...
I used it for many years, not that template stuff, but real coding. It really wasn't that bad.
|
|
|
|
|
Yes, I liked it a lot. I found it extremely pleasant to code in and very productive.
Drawing screen layouts within the source and very easy database design were real pleasures of productivity.
|
|
|
|
|
A subroutine is really a function returning void. That is how it is defined and linked in FORTRAN on all the platforms I've used.
If pigs could fly, just imagine how good their wings would taste!
- Harvey
|
|
|
|
|
I very rarely ... sorry, what did I come here for?
|
|
|
|
|
I would if anyone would talk to me.
|
|
|
|
|
I used VB6 for most of my programming life: self taught in 2002, 3 years at school (2004-2006) then 7 years at work (2012-2018).
It's been two years and a half since the last time I touched VB6 code.
Still on occasion my mind slips I still try to write VB code in C++. I hope someday I will stop writing
Do While
...
Loop
If ... Then and
For i = 0 To N
Pray for my soul.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Be strong. You'll get there!
When we give up an addiction to a dangerous substance - be it Tobacco, Heroin, or VB - you have to expect some minor lapses; we all have them.
The important thing to do is remember that you didn't slip back. You didn't reach for an ancient compiler to get your fix - you laughed at the impulse and corrected your behaviour.
We are all very proud of you!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: You didn't reach for an ancient compiler to get your fix - you laughed at the impulse and corrected your behaviour.
Sometimes the temptation is strong. "But I have to automatize a simple task with a GUI, it is so easy with VB", "It's only a small program for my parents, what damaga could it do?".
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
I know, I know - we've all been there. But think of the effort you went through to get where you are - don't throw it away for a quick fix!
Remember, VB is a gateway language: you could end up coding in Python, or - gawd help us all - PHP ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
What about
On Error Goto label
|
|
|
|
|
This one is better - makes sure your program NEVER crashes:
On Error Resume Next
and it's much easier and shorter than
try
{
DoStuff();
}
catch
{
}
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
TBH sometimes I do miss On Error Resume Next .
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Ouch!
While I think most VB bashing is childish at best, that one is indeed an abomination.
|
|
|
|
|
Jörgen Andersson wrote: most VB bashing is childish at best It is
Jörgen Andersson wrote: that one is indeed an abomination
I spent a frakking week removing it from the whole codebase in my former workplace.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: I spent a frakking week removing it from the whole codebase in my former workplace.
Sounds like well spent time!
|
|
|
|
|
It was obviously the wrong thing, the software started crashing.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
That too, not often but...
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: Pray for my soul. Too late "O child of Satan".
|
|
|
|
|
den2k88 wrote: Pray for my soul.
VB programmers have souls?!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|