Paste: stack underflow error crashes vm in ui

Author: xiackok
Mode: factor
Date: Fri, 28 Jan 2011 00:44:39
Plain Text |
! Copyright (C) 2011 Your name.
! See http://factorcode.org/license.txt for BSD license.
USING: kernel ui syntax accessors prettyprint  ;
IN: buggy1

: buggy-word1 ( x y -- x )  >>name ;
: buggy-word2 ( x y -- x )  [ . ]  dip ;

: run ( w x y -- a )
    buggy-word1
    buggy-word2 ;

MAIN: run

Annotation: Actually it crashes in a ui

Author: xiackok
Mode: factor
Date: Fri, 28 Jan 2011 00:49:54
Plain Text |
! Copyright (C) 2011 Your name.
! See http://factorcode.org/license.txt for BSD license.
USING: kernel ui syntax accessors prettyprint  ;
IN: buggy1

: buggy-word1 ( x y -- x )  >>name ;
: buggy-word2 ( x y -- x )  [ . ]  dip ;

: run ( -- )
    [
        buggy-word1
        buggy-word2
    ] with-ui ;

MAIN: run

New Annotation

Summary:
Author:
Mode:
Body: