Re: [Pharo-users] Nesting Builders in Roassal

2016-04-08 Thread Evan Donahue
Hello, I got that working, and a bit more besides, and things are starting to look pretty good. However, I've run into another issue I'm not sure how to resolve. Recognizing that, as you mentioned, nested builders are something of a bleeding edge feature, I'm happy to try to contribute code if wha

Re: [Pharo-users] FFI return by reference

2016-04-08 Thread Esteban Lorenzano
> On 08 Apr 2016, at 11:34, Esteban Lorenzano wrote: > > >> On 07 Apr 2016, at 14:15, Damien Pollet > > wrote: >> >> I think in that case you need to pass an instance of FFIExternalValueHolder. > > yes. > you can take the test FFIExternalValueHolderTests>

Re: [Pharo-users] FFI return by reference

2016-04-08 Thread Esteban Lorenzano
> On 07 Apr 2016, at 14:15, Damien Pollet wrote: > > I think in that case you need to pass an instance of FFIExternalValueHolder. yes. you can take the test FFIExternalValueHolderTests>>testCall as an example. But since it uses anonymous classes it might require a better explanation, there i

Re: [Pharo-users] Passing nil with FFI

2016-04-08 Thread Esteban Lorenzano
Hi, marshalling in UFFI is complex and sometimes not worthy, so we do not do auto-conversion between nil in smalltalk o zero to NULL (yes, I know NULL=0, but not for UFFI who is waiting a object type). In this case (since it expects a kind of external object) you have to do: SDL2 glCreateConte

Re: [Pharo-users] FFI return by reference

2016-04-08 Thread Thibault Raffaillac
Is there something like a generic int value holder then? > > I think in that case you need to pass an instance of FFIExternalValueHolder. > > > Hi again, > > > > Does anyone know what is the state of return by reference in FFI? > > Example: > > glGetAttribute: attr into: value > > > erro

Re: [Pharo-users] Debugger in 4.0

2016-04-08 Thread Hilaire
I open a bug ticket, it is important https://pharo.fogbugz.com/f/cases/17961/Evaluating-instance-and-method-variable-in-Debugger -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread Cyril Ferlicot Delbecque
On 08/04/2016 09:05, Henrik Nergaard wrote: > | s1 s2 | > > s1 := 1234 asString. > s2 := 1234 asString. > > s1 = s2. "true" > s1 == s2. "false" > > s1 asSymbol = s2 asSymbol. "true" > s1 asSymbol == s2 asSymbol. "true" > > (s1 class allInstances select: [:s | s = s1 ]) size. "2" > (s1 asSymbo

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread stepharo
+1 | s1 s2 | s1 := 1234 asString. s2 := 1234 asString. s1 = s2. "true" s1 == s2. "false" s1 asSymbol = s2 asSymbol. "true" s1 asSymbol == s2 asSymbol. "true" (s1 class allInstances select: [:s | s = s1 ]) size. "2" (s1 asSymbol class allInstances select: [:s | s = s1 asSymbol ]) size. "1" [

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread Sven Van Caekenberghe
> On 08 Apr 2016, at 09:19, Damien Cassou wrote: > > Henrik Nergaard writes: > >> | s1 s2 | >> >> s1 := 1234 asString. >> s2 := 1234 asString. >> >> s1 = s2. "true" >> s1 == s2. "false" >> >> s1 asSymbol = s2 asSymbol. "true" >> s1 asSymbol == s2 asSymbol. "true" >> >> (s1 class allInstanc

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread Damien Cassou
Henrik Nergaard writes: > | s1 s2 | > > s1 := 1234 asString. > s2 := 1234 asString. > > s1 = s2. "true" > s1 == s2. "false" > > s1 asSymbol = s2 asSymbol. "true" > s1 asSymbol == s2 asSymbol. "true" > > (s1 class allInstances select: [:s | s = s1 ]) size. "2" > (s1 asSymbol class allInstances sel

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread Henrik Nergaard
| s1 s2 | s1 := 1234 asString. s2 := 1234 asString. s1 = s2. "true" s1 == s2. "false" s1 asSymbol = s2 asSymbol. "true" s1 asSymbol == s2 asSymbol. "true" (s1 class allInstances select: [:s | s = s1 ]) size. "2" (s1 asSymbol class allInstances select: [:s | s = s1 asSymbol ]) size. "1" [ #stri