Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : If Lines (I will explain)
New Topic New Poll Post Reply
Poster Message
hyperme
Level: Smitemaster
Avatar
Rank Points: 1055
Registered: 06-23-2006
IP: Logged
icon If Lines (+2)  
If you have nested If/Else/If End commands, it gets hard to track how they pair up. It would be helpful if If, Else and Else If commands created vertical lines beneath themselves, stopping at the next Else/Else If/If End.

____________________________
[Insert witty comment here]
Qzvlkx?
08-13-2015 at 08:08 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3734
Registered: 12-28-2004
IP: Logged

File: LinedNumbers.png (687.2 KB)
Downloaded 146 times.
License: Public Domain
icon Re: If Lines (+2)  


Showing work in progress. The visual part is done, but while testing I've noticed that the code that calculates indentation is horribly slow - removing it speeds things up by 2 orders of magnitude.

____________________________
My website | Facebook | Twitter
11-24-2020 at 11:24 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5056
Registered: 02-04-2003
IP: Logged
icon Re: If Lines (+2)  
Cool!
skell wrote:
I've noticed that the code that calculates indentation is horribly slow - removing it speeds things up by 2 orders of magnitude.
Yikes! I'm guessing there's an O(n^2) issue there. Are you interested in speeding it up?

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.

[Last edited by mrimer at 11-24-2020 11:29 PM]
11-24-2020 at 11:28 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3734
Registered: 12-28-2004
IP: Logged

File: EatingMySandals.jpg (265 KB)
Downloaded 112 times.
License: Public Domain
icon Re: If Lines (+3)  
Indeed, the issue was that calculating indent for each line was done per line, and had to iterate over every line before it.

Anyway - fixed and here is how the lines look now:



PR

____________________________
My website | Facebook | Twitter

[Last edited by skell at 11-25-2020 11:28 AM]
11-25-2020 at 10:29 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2668
Registered: 07-11-2014
IP: Logged
icon Re: If Lines (+1)  
Can confirm the If lines exist in 5.2.0.508 and are very groovy.
06-09-2023 at 08:46 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : If Lines (I will explain)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.