Author Topic: CREATE doesn't nest  (Read 499 times)

Offline DavidW

  • Planewalker
  • *****
  • Posts: 316
CREATE doesn't nest
« on: July 11, 2022, 07:45:04 AM »
The CREATE function gets confused if you CREATE a resource and then, while patching it, CREATE some others using INNER_ACTION.

Simple example:
Code: [Select]
CREATE spl test1
INNER_ACTION BEGIN
CREATE spl test2
END

test2.spl is created (twice, I think!) but test1.spl isn't.

It's easy enough to work around (just COPY_EXISTING the resource after it's CREATEd) so if it's a pain to fix you could just document that CREATE can't be nested and get WEIDU to throw an error message if you try.

Offline _Luke_

  • Planewalker
  • *****
  • Posts: 15
Re: CREATE doesn't nest
« Reply #1 on: September 04, 2022, 05:49:13 AM »
According to the documentation, INNER_ACTION is supposed to pause a COPY (or COPY_EXISTING) action, not a CREATE action (or any other action command).

Offline DavidW

  • Planewalker
  • *****
  • Posts: 316
Re: CREATE doesn't nest
« Reply #2 on: September 04, 2022, 09:19:08 AM »
Well, the documentation is a bit unclear here, since it precedes CREATE, but in general the list of patches after a CREATE works the same way as COPY so it's a bit confusing when there are exceptions.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: CREATE doesn't nest
« Reply #3 on: October 29, 2022, 05:29:58 PM »
This will be fixed in next version.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: