You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should implement the QBasic "NAME" statement, which changes the name of a disk file or directory.
Its syntax is "NAME oldfilename AS newfilename".
The NAME statement is similar to the DOS RENAME command. NAME can move a file from one directory to another but cannot move a directory.
The arguments oldfilename and newfilename are string expressions each of which contains a file or directory name and an optional path. If the path in newfilename is different from the path in oldfilename, the NAME statement changes the pathname as well as renames the file as indicated.
Examples
NAME "ACCTS" AS "LEDGER"
In principle, resolving this is very similar to implementing the KILL statement in #96. Specifically, the skeleton for declaring a new QBasic statement is the same, but instead of deleting the file (like KILL does), we must rename it.
I'm sorry, but it looks like an error has occurred due to a planning failure. Feel free to add more details to the issue description so Sweep can better address it. Alternatively, reach out to Kevin or William for help at https://discord.gg/sweep.
For bonus GPT-4 tickets, please report this bug on Discord (tracking ID: e021fb92fe).
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
We should implement the QBasic "NAME" statement, which changes the name of a disk file or directory.
Its syntax is "NAME oldfilename AS newfilename".
The NAME statement is similar to the DOS RENAME command. NAME can move a file from one directory to another but cannot move a directory.
The arguments oldfilename and newfilename are string expressions each of which contains a file or directory name and an optional path. If the path in newfilename is different from the path in oldfilename, the NAME statement changes the pathname as well as renames the file as indicated.
Examples
In principle, resolving this is very similar to implementing the KILL statement in #96. Specifically, the skeleton for declaring a new QBasic statement is the same, but instead of deleting the file (like KILL does), we must rename it.
The relevant files to change are:
The text was updated successfully, but these errors were encountered: