Re: EE:CS subs listing bug
- Posted by "Carl R. White" <cyrek at BIGFOOT.COM> Jun 22, 2000
- 474 views
On Wed, 21 Jun 2000 15:04:57 +0200, =?iso-8859-2?B?qWtvZGE=?= <tone.skoda at SIOL.NET> wrote: >found this bug: > >when you press f2 to list subs and you have this anywhere in file > >s="global function myname()" --in string >or --function myname() --in comment > >it lists myname() in sub list, but it shouldnt. To requote the classic...: "That's not a bug - it's a feature." I regularly comment out whole blocks of code, but I like having access to the functions that are commented out. I also use the following line before the main block of code if I don't use a C-like main() function: -- procedure @Main() It's not valid Euphoria outside of a comment, but the subs box detects it, and the '@' symbol makes sure it's at the top of the list. Very handy IMHO. I admit though, that it is a bit silly detecting subroutines in strings. I'll do something about that in the next release. Strangely, (judging by your last post) you seem to be using the source code version rather than the compiled executable. Any connection to the bugs I mention below? On another note: There are 2 other bugs in EE22:CS4 that I'm surprised nobody has noticed... Is there anybody apart from me and Skoda using it these days? Should I drop the project? Bug 1) [Major] F5 crashes the editor. I swear I tested this, but the copy of "4" I have here at work crashes quite badly.Bug 2) [Minor] F1 detects all keywords, buitins and standard library functions, apart from 'if'. Carl -- How can someone who tests other people's software for a living be so bad at testing his own code?!?
![]()