Referencing non-existing rules should generate an error

Let the developers know what you think of the software and what can be done to either improve the CFDG language or the Context Free program.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
User avatar
TorfusPolymorphus
Posts: 27
Joined: Sun Dec 28, 2008 2:16 pm
Contact:

Referencing non-existing rules should generate an error

Post by TorfusPolymorphus »

Sometimes after changing a rule name I forget updating a call to that call, thus calling a rule which doesn't exist. Currently (2.2) this is simply ignored by CFDG. I'd rather see an error message, though, since this simply is an error and I can't imagine a situation where ignoring it would be a good idea.

User avatar
MtnViewJohn
Site Admin
Posts: 875
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

When I modify mtree.cfdg to change one of the calls to rule WL to WLb I get the error message
Shape with no rules encountered: WLb.
Is this the situation that you are talking about?

User avatar
TorfusPolymorphus
Posts: 27
Joined: Sun Dec 28, 2008 2:16 pm
Contact:

Post by TorfusPolymorphus »

Yes, that's what I was talking about. I just noticed I was still running 2.2beta3 (v9). Using the final release (v10) it works like you describe. Sorry for the confusion.

I thought I was running the final 2.2 version, since beta3's output said "cfdg - 2.2(v9)"...

User avatar
MtnViewJohn
Site Admin
Posts: 875
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

I'll be more careful with future beta releases.

Post Reply