-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to use custom alphabet for 4 first objects #276
Comments
The result of this is that the class-object names come out wrong if you redefine the basic alphabet characters. For example:
This is a bug but, as you say, not very important. (These objects are generally only printed for debugging purposes, and why would you rearrange the alphabet like that in the first place.) |
Actually (to continue on this minor bug), if you do a frequency check on an english story (this example is Curses) , an alphabet like this is more economical:
Swapping in But... minor bug. |
Suggestion is to move creating the metaclasses to last possible moment, just before the first regulasr object is created. Remove from
Add to
|
That will probably work but it's probably a compiled-output change. It might not be worth it to fix such a corner case. I notice there's no guard against changing the alphabet later in compilation! I'll file that separately, but we'll want to think about the problems together. |
Well, the idea above (moving the construction of the four metaclasses down) does not work. With that change, the original example above doesn't compile at all:
I could imagine tweaking the change: perhaps we create the metaclasses immediately before the first object or routine or array or... But this seems like it's getting more and more disruptive. I don't think this is the way to go. |
How about a different plan: add a new compiler option, and then deprecate the This is how I've dealt with other troublesome directives like I think we can keep the other forms, Note that |
This wouldn't be a Or maybe I think that we'll have other string-formatted options in the future, in which case I'd want to use Unix-style: |
An option to set the alphabet already on the command line (and maybe the |
When using a custom alphabet there's no way to apply the alphabet on the first for objects (
Class
,Object
,Routine
andString
), the descriptions are always done in the default alphabet for these objects. Guess it's because they are defined before a single line in the story-file is read. Not very important but it is a bit annoying.The text was updated successfully, but these errors were encountered: