[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::atarist

Title:Atari ST, TT, & Falcon
Notice:Please read note 1.0 and its replies before posting!
Moderator:FUNYET::ANDERSON
Created:Mon Apr 04 1988
Last Modified:Tue May 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1433
Total number of notes:10312

1398.0. "is this a CoSHy bug?" by KERNEL::BLAND (Norman Bland 833 3797 CSC, Basingstoke) Sat Jan 29 1994 13:51

    Hello all you CoNnect guru's - is this a bug or is it me being stupid.
    I was playing with the Shell CoSHy and tried the following:
    
    >> alert 1 beware    ! and 
    >> alert 1 "beware"
    
    Both of these caused a 2 bomb crash. I rebooted with no ACCs or
    Auto-folder programs - still bombs. I expext it to create a GEM box
    with an ICON for whatever '1' equates to and the message beware.
    
    Norman 
T.RTitleUserPersonal
Name
DateLines
1398.1Programme and Programmer buggy :-)EDDF10::ECKELNo sports.Mon Jan 31 1994 10:2521
    Hello Norman, 
    
    I agree with you that the described behaviour is a CoShy bug, and I'll
    tell Wolfgang about it. 
    
    But it is the reaction to a syntax error you made in you alert-command.
    alert expects a correctly formatted string for an alert box as second
    parameter, from memory (no docu in the office :-)) such as
    
      alert 2 "[1][ This is an | alert ][ Retry | Abort ]"
    
    where the first parameter gives the number of the default button, the
    number in the first pair of brackets the icon for the alert box, the
    parameter in the second pair of brackets contains the text to be
    displayed (multiple lines separated by "|") and the third the texts for
    the buttons, separated by "|", too. 
    
    But as I stated above, CoNnect shouldn't crash if you don't do it
    right.
    
    Regards, Peter.
1398.2No CoNnect bug, a TOS bug.EDDF10::ECKELNo sports.Mon Jan 31 1994 11:3213
    Hello Norman, 
    
    re .0
    
    the bug you described is completely normal and nothing Wolfgang can fix
    - it's a TOS bug. CoNnect gives the parameters you use for the alert
    command to form_alert() without any change, and TOS throws bombs. The
    only way out would be to perform a syntax check before giving the
    parameter to TOS, and that's something Wolfgang surely won't do ...
    
    Regards, 
    
      Peter.
1398.3I goofed-who needs syntax :-)KERNEL::BLANDNorman Bland 833 3797 CSC, BasingstokeMon Jan 31 1994 18:234
    Thanxs Peter. Clearly I did not understand the required syntax but I do
    now.
    
    Norman