[prev in list] [next in list] [prev in thread] [next in thread] 

List:       e-lang
Subject:    [e-lang] Bug: __getAllegedType/0 doesn't work on objects with matchers
From:       kpreid () attglobal ! net (Kevin Reid)
Date:       2003-11-06 17:51:28
[Download RAW message or body]

__getAllegedType/0 (and therefore help()) fails for any E-defined object
with a matcher, apparently due to attempting the pattern match:

? def _ {}.__getAllegedType()
# value: <...__main$1>

? def _ { match _ {} }.__getAllegedType()
# problem: <NullPointerException>

? def _ { match [] {} }.__getAllegedType()
# problem: a 2 size list doesn't match a 0 size list pattern

? require.__getAllegedType()
# problem: such-that expression was false

-- 
Kevin Reid
_______________________________________________
e-lang mailing list
e-lang@mail.eros-os.org
http://www.eros-os.org/mailman/listinfo/e-lang
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic