|
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.
|
|
|
|
|
We do in fact have souls. Plural.
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 might help to just taper off.
Last week, I wrote a script in VBScript to send an email. Didn't get the DT's or any other maladies.
Might have to do another one next year.
No worries, had my second shot over a month ago.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
Why? The verbosity of the VB language family reduces the chance of nesting errors like the one that brought down AT&T's network in 2006. That outage was a code bug relating to a closing brace being on the wrong line.
|
|
|
|
|
Yes it does, though it is not enough. Can help if all the nests are of different kinds, but if they are for example 4 nested Ifs it won't help.
Good indentation and a tiny comment on the closing brace if the situation calls for it will solve anyway. Also VB constructs are similar to the K&R indentation
if (...) {
...
} compared to the better readable and less error prone Allman style
if (...)
{
...
}
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
|
|
|
|