in reply to hangover from perl...
I not only write code in Perl but in C, C++ and JavaScript and can so fully relate. Not as bad is when I write stuff in assembler. At least when I'm coding in assembler I go into "assembler mode" and don't mix so badly.
Actually, back in the day when I was coding in both Z80 and MC6800x0 assembler I used to mix syntaxes. This normally occured during one of those all-night sessions we all know and love. When sleep deprivation takes over and caffiene just doesn't cut it any more.
Many is the time when I am writing C code I have wanted to do string operations like:
orbuffer1 .= buffer2;
or some other Perlism. Or this in Perl code:buffer =~ s/\s+$//;
Where are the dollar signs?for(ix=0;ix<=5;ix++) { : :
Can you spot the C code syntax errors here:
Just did that one last week at about 1AM.for(ix=0;ix<=$#buffer;ix++){ $buffer[$ix]='\0'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: hangover from perl...
by exussum0 (Vicar) on Apr 27, 2004 at 15:25 UTC | |
by flyingmoose (Priest) on Apr 27, 2004 at 19:21 UTC |