I was able to solve, I will comment into the issue how I did it.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For mor
The new ABI broke Go-QML compilation
(https://github.com/go-qml/qml/issues/190). The error is:
cdata.Ref: relocation target runtime.acquirem not defined for ABI0 (but is
defined for ABIInternal)
cdata.Ref: relocation target runtime.releasem not defined for ABI0 (but is
defined for ABII
Wow. Thank you. In the examples I could not find how to use an OpenGL
"widget", but in the wiki it seems that work on 3D is on-going. So it seems
I'll have to wait a little more to use it, but I'll keep an eye on it!
--
You received this message because you are subscribed to the Google Groups
Thank you, I see your point. This is less powerful than contracts, but Go
proved me that less is more, as long as it is enough. My point is: do we really
need a so powerful version of generics or maybe operators and interfaces are
enough?
For the many keywords added and to manage conversions, w
Ps: as for point 4, we'd maybe need b and c to be integers, and also a SetIndex
method. We'd also need a Key, SetKey and DeleteKey to mimic map operators.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop re
I'd really like to read a reply to Lucio's argument about operator overloading.
Once we define that:
1. ab is
!a.Less(b) && !a.Equals(b));
4. a.Index(b) is the same as a[b] and a.Index2(b, c) is the same as a[b:c];
5. maybe some more?
Would we really need contracts and the added complexity in th
On Friday, August 17, 2018 at 1:04:20 AM UTC+2, thepud...@gmail.com wrote:
>
> I suspect the 'replace' directive I described in my earlier post in this
> thread might be sufficient for what you describe, because it lets you map
> from an import path like "example.com/me/foo" to something on your
On Thursday, August 16, 2018 at 8:20:10 PM UTC+2, thepud...@gmail.com wrote:
>
> Could you say a few more words about your use case?
>
Thank you. Looking at design docs, I think Athens can do what I'm looking
for, but maybe it is a little "too much", and either docs are incomplete or
I'm unable
I'd like to experiment with modules, in a local directory. I know I can do
it setting GOPROXY to a file:/// url.
But what about looking for my own modules in a local folder, and the others
normally (optionally through the proxy)? Is there a simple proxy I can
configure in this way? Thank you.
On Monday, February 19, 2018 at 4:04:12 PM UTC+1, Ignazio Di Napoli wrote:
>
> data2 := found.(float32) // THIS PANICS AT RUNTIME, data2 is int
>
Sorry, found is int.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
The only time I "needed" generics was for an r-tree container I wrote.
I'd been much happier if I could statically catch my errors about contained
data type, instead of catching them at runtime with panics during
conversion.
For example:
x := 0.0
y := 0.0
data := 1
container
Thank you!
>
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optou
Thank you! I found out: Ubuntu and MSYS2 ship two different versions that
have different types in header according Go rules. That's why I cannot use
the same code.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group a
When I include stdints.h, the error is:
cannot use C.uint32_t(bi.Time_reference_low) (type C.uint32_t) as type
C.uint in assignment
on line:
c.time_reference_low = C.uint32_t(bi.Time_reference_low)
Even if in stdint.h there is:
typedef unsigned int uint32_t;
and the c is of type:
Thank you. Now it complains it cannot convert uint32_t to uint. It's a start.
It just seems strange I can compile under Windows with MinGW 64bit and not
Ubuntu 64bit.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this grou
Hello everyone,
I get this error while compiling gosndfile under Ubuntu. The same code
compiled fine under Windows using MSYS2.
I couldn't find any information on this problem, if not checking for blank
lines before <>, that obviously are not there since it works
under MSYS2.
I also checked li
Wow. :)
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In my opinion the best is https://github.com/cheekybits/genny.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more
Thank you!
>
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optou
So, with Println the compiler can optimize and assign the same address to
a1 and a2, and without it cannot? Why?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Ok, but why does the Println changes the result?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit
I'm very curious about the answer to this unanswered StackOverflow
question:
http://stackoverflow.com/questions/41357948/what-golang-compiler-will-do-when-fmt-println
import (
"fmt")
type shout interface {
echo()}
type a struct {}
func (*a) echo () {
fmt.Println("a")}
type b stru
On Thursday, July 7, 2016 at 12:05:27 AM UTC+2, Justin Israel wrote:
>
> https://play.golang.org/p/fOFT2voh6l
>>
>
> That's pretty sweet.
>
Pretty sweet indeed, but it's worth saying that if the string is [field
1][field 2][][field 4] the result is ["field 1", "field 2", "field4"],
ignoring the
23 matches
Mail list logo