The word superclass is incorrect, it should be something
like the relationship between class and object in other
oop languages. see the locale labs.

Чт, 03 ноя 2016, bill lam написал(а):
> coerase <'birthday' erases the locale 'birthday'
> which usually is not what you wanted, since it
> erase the base (here means supercalss) locale
> instead the current locale of the form that your
> were watching on screen.
> 
> If you had used the verb create to get a new
> instance of birthday which in turn calling
> wd'pc guiform ....' to get everything started,
> then the pragmatic practice of disposing the form
> is doing something like,
> 
> guiform_destroy=: 3 : 0
> NB. your clean up here
> wd'pclose'
> codestroy''
> )
> 
> guiform_close=: guiform_destroy
> 
> 
> if you erase the 'birthday' locale, you can never run guiform
> again without loading related scripts once more. (assuming
> birthday is the base locale of the guiform)
> 
> Ср, 02 ноя 2016, Tom Arneson написал(а):
> > I've done some more experimenting with the coerase problem:
> > 
> > NB. ---------------------------------------------------------
> > NB. Exit button
> > guiform_b1_button=: 3 : 0
> >   wd'pclose'
> >   cocurrent 'base'
> >   coerase <'birthday' NB. erase the locale
> >   NB.   guiform_close ''
> > )
> > 
> > I moved the coerase into a button verb and also set the current locale to 
> > 'base' before the coerase.
> > 
> > when my form closes, locale 'birthday' still exists, but there are no 
> > longer any names it the locale. There were 11 names in it  before the 
> > coerase.
> > coerase is doing something as I saved its return value and that is 1 as I'd 
> > expect, and it does destroy the contents of the locale.  
> > 
> > The condition of asyncj seems to make no difference, as I tried both 
> > wd'setj asyncj 0' and  wd'setj asyncj 1', with an exit from j between tries.
> > 
> > Engine: j805/j64/android
> > Beta-13: commercial/2016-10-27T10:00:38
> > Library: 8.05.06
> > J Android: 1.0.12/23
> > Platform: Android 64 (arm64-v8a)
> > Installer: unknown
> > InstallPath: /storage/emulated/0/Android/data/com.jsoftware.j.android/files
> > Contact: www.jsoftware.com
> > 
> > -----Original Message-----
> > From: Tom Arneson [mailto:[email protected]] 
> > Sent: Tuesday, November 1, 2016 14:42
> > To: '[email protected]' <[email protected]>
> > Subject: bug? in jandroid
> > 
> > I'm trying to write scripts that run in both windows and android.
> > 
> > the following verb:
> > 
> > NB. ---------------------------------------------------------
> > guiform_close=: 3 : 0
> >   coerase <'birthday' NB. erase the locale
> >   wd'pclose'
> > )
> > 
> > exits a form in both OSs, but does not remove locale 'birthday' in android, 
> > it does in windows.
> > 
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> 
> -- 
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to