Expanded objects in collection

Damien Bouvarel damien.bouvarel at gmail.com
Fri Nov 13 22:42:50 UTC 2009


Hello,

i'm restoring the opengl stuff and i'm facing the following error:

Depending pass: .....--SEMANTIC---------
Type `OBJECT' is invalid with `Expanded INTEGER'.
Line 112 column 34 in
OBJECT(/home/dams/Lisaac/lisaac_0.39_beta/lib/standard/kernel/object.li):
  - Self:SELF '=='  Right 60 other:OBJECT :BOOLEAN <- ( deferred; FALSE);
                                  ^
Line 64 column 9 in
HASHED_DICTIONARY(/home/dams/Lisaac/lisaac_0.39_beta/lib/standard/collection/
hashed_dictionary.li):
  - has k:K :BOOLEAN <-

Triggered by the code:

keys := HASHED_DICTIONARY(INTEGER,INTEGER).create;
keys.add k_backspace to (`XK_BackSpace`:INTEGER);
...

 keys.has key.if {         <<<
  ...
}

So it is no more possible to store Expanded object like INTEGER in
collections? It used to work..
I think the '==' profil changed, and by the way what is the semantic of '~='
operator? i saw it somewhere.

I tried the REFERENCE(E) on a simple example and it segfaults:
+ i:INTEGER;
+ ref:REFERENCE(INTEGER);

ref := i;     <<<

It should be ok because REFERENCE(E) imports from E? Nevertheless it
shouldn't segfault  :)

Damien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/lisaac-devel/attachments/20091113/eac207bf/attachment-0001.htm>


More information about the Lisaac-devel mailing list