Re: Question about bindings & STklos objects

From: Harvey J. Stein <hjstein_at_math.huji.ac.il>
Date: Thu, 17 Nov 1994 20:26:11 +0200

Rob DeLine writes:
>
> > So, does anyone have a way around this? [binding a method to an
> event]
>
> Change your line:
> (bind r "<Button-3>" `(flash ',r))
>
> to this:
> (bind r "<Button-3>" `(flash ,(address-of r)))
>
> The reader will be able to handle the address. I've chatted with
> Erick in the past about this kludge -- specifically about changing
> the reader to understand the object notation. I think this is a
> problem that every new STk user runs into sooner or later.
>

To what extent can an address be used in place of a variable?

For example, the following didn't work:

STk> (define a '(p d q))
#[undefined]
STk> (car a)
p
STk> (car (address-of a))

*** Error:
car: wrong type of argument: "#pf0f64"
STk>

Thanks,

Dr. Harvey J. Stein
Berger Financial Research
hjstein_at_math.huji.ac.il
Received on Thu Nov 17 1994 - 19:28:20 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST