scsh-users
[Top] [All Lists]

Re: bounds checking

To: scsh-news@martigny.ai.mit.edu
Subject: Re: bounds checking
From: Olin Shivers <shivers@lambda.ai.mit.edu>
Date: 05 May 1997 21:33:00 -0400
Organization: Artificial Intelligence Lab, MIT
    From: adamo@ajax.noc.ntua.gr (Yiorgos Adamopoulos)
    Subject: bounds checking
    Date: 6 May 1997 00:26:30 GMT
    Organization: National Technical University of Athens, Greece

    Does scsh perform bounds checking on strings?  Ie. will I have buffer
    overruns?  I am not a great scheme hacker to know to answer this, but if
    scsh handles buffer overruns, then I would not have to use Perl for the
    project I am currently on.

Sure! It's Scheme. No buffer overruns here.
    
If you try to index off the end of an array or string, the system raises an
exception. The default exception handler
  - stops the program and drops into an interactive breakpoint if scsh
    is running in interactive mode;
  - kills the process if it is running in non-interactive mode.

    -Olin

<Prev in Thread] Current Thread [Next in Thread>
  • bounds checking, Yiorgos Adamopoulos
    • Re: bounds checking, Olin Shivers <=