|
If only there were a way of helping you to remember - some kind of aide memoire
|
|
|
|
|
OK - when was the last time you used a GOTO in programming?
Personally, I can't remember using one since my COBOL days back in '78 - but I have seen other people using them right up until the current day.
So, 'fess up! Are you a closet GOTO fan?
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
_Maxxx_ wrote: GOTO
what this does ?
|
|
|
|
|
Never used it, I started programming back in 2000
Hello World!
|
|
|
|
|
It passes the caret from Here to There. Th'theet th'that's all.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
ouch VB6 was the last time I used that and that was in Uni.
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Quote: Are you a closet GOTO fan?
No, but I suspect that the compiler I use is.
|
|
|
|
|
According to my boss last week when i did my data validation with a return. . If you ask him one function should have only one exit point. At least i am not afraid to fight over that.
The only question that remains is should i type my essay on how data validation and early return is good for your code or should i write it
Microsoft ... the only place where VARIANT_TRUE != true
|
|
|
|
|
OK, mine was in many VB6 projects, some ...10 years ago..
The line
On Error Goto 180
The signature is in building process.. Please wait...
|
|
|
|
|
I've always been a staunch opponent of Goto and never used it even in GW-BASIC and VB6.
|
|
|
|
|
There's a disguised GOTO at the end of every line of code (in C#, for example "GOTO Next" is spelled ";"), and another at the end of every process call.
They have to be disguised, despite the fact that no program would work without them, because of the demands of religious fundamentalists.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Does it count if I used it in assembly?
Yesterday, if that counts.
Otherwise, I don't know.
|
|
|
|
|
if were counting assembly then mine would be more recent too .. although i havent done any assembler since the nineties either.
but even in 6502 i was a jsr ... rtn man more than a jmp ..
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
Quite regularly to be honest...
As I have to maintain some 15-20 year old VB6 (some of those going back to VB3) projects.
But only as in On Error GoTo ErrHandler . Never used any other GoTo's as far as I can remember.
(At least if you don't call break and early return gotos )
|
|
|
|
|
Nicholas Marty wrote: But only as in On Error GoTo ErrHandler .
Technically, I wouldn't call it a Goto. The goto keyword here is a mere choice by the designers of the language, it could have been a 'execute' or 'process' or 'run' as well.
|
|
|
|
|
True, it's not a goto that's invoked by my user code. But I see it a bit like an event or a delegate.
You have that Error Event and set the action to do when it occurs
|
|
|
|
|
I still use it.
Veni, vidi, vici.
|
|
|
|
|
I guess assembly code doesn't count?
How about VBA macros?
Batch scripts?
And then I heard it like a shot through my skull to my brain,
I felt my fingertips tingle and it started to rain,
When the walls of my bedroom were tremblin' around me,
This ramshackle voice over attack of a bluebeat,
And tellin' me she's only looking for fun.
And this was the sound of the very last gang in town.
I'da called you Woody, Joe
|
|
|
|
|
Does this[^] count? Not that I have ever used it.
"Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[ ^]
|
|
|
|
|
Umm, when you are writing an RTOS dictionary it is the most 'elegant' way to exit a command...
I admit I have done it (I am not proud) and the results are in most embedded devices, besides most loops when they are compiled come out as JMP or JSR which are goto's by another name!
Glenn
|
|
|
|
|
Quote: can't remember using one since my COBOL days back in '78
You are like Odin or Zeus or creator of Matrix.. I wasn't born at that time.
Anyways, i haven't used GOTO except the assembly programming (8085/8086 stuff) in college ( i learned it as part of syallabus, i am not that old!)
|
|
|
|
|
The first application I wrote at my first programming job is full of goto's, it still keeps me awake at night! And it's still in use (I go out drinking with them sometimes)!
|
|
|
|
|
|
Quote: Unsurprisingly, all three were drunk when this happened. Things that make you go "Ahhh, ok".
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
Had it been Bieber, I'd have let it go as a natural Darwinian process.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|