Search
Saturday, 19th of May 2018, 2:50:48 UTC
14:37:32
drmeister
frgo: Since Pointer_* can be derived from a ForeignData_* - I'm going to try removing Pointer_* and replace it with ForeignData_*
14:38:16
drmeister
I was trying to get Peter Seibel's "Manifest" documentation web server working and I ran into the problem that the socket interface only works with Pointer_sp.
14:39:03
frgo
Yeah - very cool. I am tied up in other things currently...
14:39:19
Bike
what do you mean only works with pointer sp?
14:39:30
Bike
manifest doesn't do anything exotic, does it?
14:40:00
drmeister
It called this... https://github.com/clasp-developers/clasp/blob/dev/src/sockets/sockets.cc#L771
14:40:48
drmeister
... with a ForeignData_sp pointer. ForeignData_* has a superset of capabilities over Pointer_*
14:41:34
drmeister
The pointer points to a fd_set struct.
14:42:06
Bike
isn't calling this function with a ForeignData_sp ok? assuming ForeignData is a subclass of Pointer
14:42:14
Bike
i remember you wanting to unify these or something, though
14:43:21
frgo
Unfortunately, ForeignData_O is not a subclass of Pointer_O but of ExternalObject_O.
14:44:46
Bike
having just one foreign pointer class sounds nice. what do ForeignData or ExternalObject have that Pointer doesn't?
14:44:49
drmeister
Pointer_O is really simple, it just wraps a void*. ForeignData_O does that and stores some other info about it.
14:45:40
Bike
and if it does that and more it seems like it should be a subclass, at leats
14:50:11
drmeister
Subclass would probably work - but eliminating Pointer_O altogether would also work.
14:50:35
Bike
so what's the difference between external object and pointer
Saturday, 19th of May 2018, 14:50:48 UTC