Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 10914] New: new spell file inheritence scheme

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 10914] New: new spell file inheritence scheme
  • Date: 10 Apr 2006 23:28:37 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=10914

Summary: new spell file inheritence scheme
Product: Sorcery
Version: 1.14.x
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: acedit AT armory.com
CC: grimoire AT sourcemage.org


Background: It would be nice to have code inheritence in the dependency
resolution phase of cast, and to be able to have common stuff done on the
grimoire side (for lots of spells (eg z-rejected warning message). Similar to
what FUNCTIONS does everywhere else. Unfortunatly, loading FUNCTIONS can slow
dependency resolution down. Other phases of cast pay the same performance hit
of
course, but its a much smaller percentage of the total time (building takes a
long time). So we're looking for an alternate solution.

The idea we agreed to on irc was that for a given file (say PREPARE), if
sorcery
didnt find it in the spell directory, it would look in the section directory
for
one. Failing that, in the grimoire directory. Same would be true of other
files.
The spell files could load the section files and the section files would load
the grimoire ones. This would be functionally equivalent to the spell file
running (hypothetical) default_prepare; its one line either way.

The nice thing about this design is that its really simple compared with other
schemes we thought of, but still accomplishes the goals we have in mind. Such
as
having yet another special section/grimoire file that loads some subset of
functions, one of which overrides (hypothetical) default_prepare to do other
stuff.

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Sorcery-Bugs] [Bug 10914] New: new spell file inheritence scheme, bugzilla-daemon, 04/10/2006

Archive powered by MHonArc 2.6.24.

Top of Page