Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WITH/END WITH?
#11
Quote:the post by @ClarettaBrown above.  was in english when i last replied.  is my mind playing tricks on me?!
 No markermurt pulled same stunt here:  https://qb64phoenix.com/forum/showthread...0#pid38830

I had to translate it to Bing to see if my reply to the English version was still in the ball park.

I think I will start quoting these newbies (a sign of mistrust) until I know that they aren't going to radically edit their post.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#12
(01-19-2026, 07:22 AM)ClarettaBrown Wrote: Conceptuellement, cela paraît simple, mais en pratique, c'est loin d'être le cas. WITH / END WITH n'est pas qu'une simple simplification syntaxique : cela influe sur la résolution des noms, la portée des variables et la manière dont le compilateur/analyseur syntaxique réécrit l'accès aux membres. En QB64PE, cela impliquerait penaltyshootouts.fr des modifications du lexer, de l'analyseur syntaxique et, éventuellement, de la génération de code intermédiaire, afin que le compilateur sache dans quel contexte symbolique il se trouve. C'est faisable, mais il s'agit d'une fonctionnalité essentielle du langage, et non d'un simple ajout. C'est généralement pourquoi ces fonctionnalités restent longtemps sur les listes de souhaits : faciles à imaginer, mais difficiles à intégrer proprement sans perturber le comportement existant.

@bplus Notice the link to the french spam site added?

That's... a lot of effort to spam something!!
Reply
#13
"AI spam bots. Unlike traditional, static spam, AI-powered bots can create human-like, contextually relevant, and persuasive messages that are harder to detect."

Jeez, is this the world we're heading into?
Reply
#14
Steve, So ClarettaBrown is gone? Dang that is allot of effort for a stupid spam! 

Richard, If AI gets into the act of spamming there should be very harsh penalties! This is clear misuse of technology and will not boost AI reputation. AI should protect itself from such misuse of it.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#15
(01-20-2026, 04:10 PM)Magdha Wrote: "AI spam bots. Unlike traditional, static spam, AI-powered bots can create human-like, contextually relevant, and persuasive messages that are harder to detect."

Jeez, is this the world we're heading into?

Seems like the bots are now starting to use AI to try and say something relevant to whatever they post in, and then coming back and editing the post a day later or two and inserting the links to the spam crap so the mods don't notice.

It's the type of crap that makes you want to close the forum completely and then say, "Go chat with a member on discord or elsewhere, get a recommendation from an actual person, and then we'll send you an invite.  We're closed because of spam."

Can you imagine, if they go through that much effort to spam a little hobby board like ours that has almost no traffic, what the heck do the larger/busier boards have to put up with and moderate all the time??  It's beyond crazy.
Reply
#16
what a shame.  that good advice is guided the wrong way.  to obtain attention.

that's why some forums.  have a zero-tolerance policy.  for an user who claims his/her own work.  for text that originally came from an a.i. engine.  in one forum i belong to.  an user was recklessly accused of being an a.i. agent.  it's because he liked to write walls of text.  about how beautiful linux was supposed to be.  for only one area of technology.  that operating system is rather weak on.  maybe you already know which one.  (that many more times.  we have to thank one of the members of the qb64 phoenix development team!)

it happened to me too.  in a yet different forum.  i was accused of being like "chatgpt."  by another user.  who really was the one who was scooping up what i wrote.  and rebasing it as his/her/its response.  it made me very angry.  i almost totally abandoned that place.  which would have been a shame.  because they are cool like you guys.  in a different way.  but are a little bit on the heavy side.  with the alcoholic beverages...
hopeless addict of dying in the first few levels of two particular console viewport "roguelike" games
Reply
#17
(11-21-2025, 07:16 PM)bobalooie Wrote: Back in my VB6 days I would frequently make use of a WITH/END WITH block when I had UDTs with a lot of members. I believe it's still available in the Visual Studio flavor as well. How difficult would it be to implement this in QB64PE?
I'm late to this thread but I'll be honest, I always hated WITH and when I come across code using it that I plan on working with a lot, I take them out add the actual variable names in front of the ".". 
Why? Because it obfuscates the code, for me at least. I prefer to be able to know what a given line of code is doing with as little work as possible. I get that compilers might generate more "efficient" code and all that, but I haven't seen WITH improve performance in any noticable way, but removing it has made visualizing what the code is doing a lot easier for me.
Reply
#18
(01-21-2026, 11:14 PM)madscijr Wrote: I'm late to this thread but I'll be honest, I always hated WITH and when I come across code using it that I plan on working with a lot, I take them out add the actual variable names in front of the ".". 
Why? Because it obfuscates the code, for me at least. I prefer to be able to know what a given line of code is doing with as little work as possible. I get that compilers might generate more "efficient" code and all that, but I haven't seen WITH improve performance in any noticable way, but removing it has made visualizing what the code is doing a lot easier for me.

I get that, everyone has a workflow that works best for them. I sometimes have UDTs with a lot of members, so for me the WITH/END WITH construct is really handy (especially when initializing the UDT). If somebody chooses not to use it, then they should what's right for them.
It's not the having, it's the doing.
Reply
#19
For me, I'm a horrific user of copy/paste so WITH/END WITH has never been part of my personal coding process.

I type something like ThisIsMyVar.Extension = foo
Then I highlight the ThisIsMyVar.
Then it's CTRL-C to copy it.
Then for the next several lines I just CTRL-V and paste it in where I want it and type in the rest of the namespace manually.

Like mad, I find it easier to track and reference in my mind if I'm looking at the full variable name, rather than having to track which WITH my code might currently be associated with at any given moment.  Wink

It's just what works for me personally.
Reply
#20
(01-19-2026, 05:25 PM)bplus Wrote: Well lets ask AI
Quote:However, the idea has been discussed in the community forums, with users expressing a desire for this feature, especially those who frequently used it in VB6.

So nice work around idea, no?

I feel almost famous, AI knows me.
It's not the having, it's the doing.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question What happened to end year holiday season code? mnrvovrfc 5 1,069 12-27-2023, 02:39 PM
Last Post: GareBear
  So... I *think* I found the cheese at the end of the maze? MrCreemy 11 2,065 12-30-2022, 11:24 AM
Last Post: JRace

Forum Jump:


Users browsing this thread: