[lisaac-Bugs][312071] Expanded objects in collections

lisaac-bugs at alioth.debian.org lisaac-bugs at alioth.debian.org
Mon Nov 16 05:50:19 UTC 2009


Bugs item #312071, was changed at 14/11/2009 10:35 by Benoit Sonntag
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413092&aid=312071&group_id=100200

>Status: Closed
>Priority: 1
Submitted By: Damien Bouvarel (dams-guest)
Assigned to: Nobody (None)
Summary: Expanded objects in collections 
Target Milestone: Lisaac 0.4
Category: Lisaac Compiler


Initial Comment:
The '==' operator limit the use of Expanded object in collections.

Section Header
  + name     := PROTO;
Section Inherit
  - parent:OBJECT := OBJECT;
Section Public  
  
  - main <- 
  ( + keys:HASHED_DICTIONARY(INTEGER, INTEGER);
    keys := HASHED_DICTIONARY(INTEGER, INTEGER).create;

    keys.has 2.if {
    };
  );

Output:
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 <-


----------------------------------------------------------------------

>Comment By: Benoit Sonntag (sonntag-guest)
Date: 16/11/2009 06:50

Message:
It's not a bug, use fast_has.


----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413092&aid=312071&group_id=100200



More information about the Lisaac-devel mailing list