Get rid of ALIAS_STR

Mildred Ki'Lya ml.mildred593 at gmail.com
Tue Mar 30 22:47:49 UTC 2010


Hi,

In the compiler, there is a lot of ALIAS_STR to transform
ABSTRACT_STRING that have to be compared character by character using
'==' into STRING_CONSTANT where pointer comparison '=' is enough.

Now, ALIAS_STR.get is really too much to write, it's not pretty. In a
word, I want to get rid of it.

My proposition is to add Lisaac numeric externals for the following slots:

  - lower_string_constant :INTEGER <- `33`;
  - upper_string_constant :INTEGER <- `34`;
  - item_string_constant i:INTEGER :STRING_CONSTANT <- `35`;

Converting ABSTRACT_STRING to STRING_CONSTANT could be done using an
auto export in ABSTRACT_STRING to_string_constant. This would compare
the ABSTRACT_STRING with all the STRING_CONSTANT, both those of the
compiler, and those that were converted earlier.


Mildred

-- 
Mildred Ki'Lya
╭───────── mildred593@online.fr ──────────
│ Jabber, GoogleTalk: <mildred at jabber.fr>
│ Website: <http://ki.lya.online.fr>           GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/lisaac-devel/attachments/20100331/f9f3da90/attachment.pgp>


More information about the Lisaac-devel mailing list