About 1,148,798 results (1,806 milliseconds)

steve yegge - when-polymorphism-fails

https://sites.google.com/site/steveyegge2/when-polymorphism-fails
Sep 22, 2004 ... I.e., would you have the security guard ask everyone if they're allowed in the building? Absolutely not. You'd have your code do some runtime ...

Virtual concepts (non-intrusive dynamic polymorphism)

https://groups.google.com/a/isocpp.org/g/std-proposals/c/4gEt2OBbSQM/m/Duv7-YUeBwAJ
In Haskell there is something very similar which is called "typeclass", so I could have used that name. On the other hand, the old C++0x idea of "concept maps" ...

Achieving Polymorphism in Go

https://groups.google.com/g/golang-nuts/c/B4MSFH7AKpY
getCalories and setCalories and they will have package visability. You could get the original interface by having a package private func called eat and then add ...

The failures of iostreams

https://groups.google.com/a/isocpp.org/g/std-proposals/c/bMzBAHgb5_o/m/C80lZHUwp5QJ
You can achieve the same runtime polymorphism (being able to overload ... I have never needed that much performance that I would have to not use C++ IO streams to ...

Defstruct vs Records - an Erlanger's cry for help

https://groups.google.com/g/elixir-lang-talk/c/6kn7J2XnFg8/m/I5poTNCEHwAJ
Aug 2, 2015 ... ... polymorphic or runtime features of maps, records are going to be faster. ... The point of the coupling is exactly so we can use them with ...

Why do you program in C++?

https://groups.google.com/g/comp.lang.c++.moderated/c/xaIvmhAQ4lg
Apr 18, 2005 ... offers both - run-time polymorphism by different (virtual) ... dll it's quite obvious, if you have Java runtime installed. Besides ...

marshaling a Set of polymorphic types

https://groups.google.com/g/spray-user/c/n2LLO2wDuBo/m/nwDqHjh_FzsJ
My question is how do I tell spray-json to marshal this Set of polymorphic types so that all Device objects in the devices Set use the appropriate format for ...

Reference-counting and polymorphism of protobuf message classes ...

https://groups.google.com/g/protobuf/c/UQAH_oKXsOI
Jun 28, 2018 ... I have two (maybe unrelated) questions: -- Is there a recommended way to wrap "smart pointers" around protobuf message objects in C++?. -- Is ...

Why is Dart not supporting both covariant and contravariant

https://groups.google.com/a/dartlang.org/g/misc/c/32WdLuwH5nc
Nov 12, 2013 ... in Java or C# when we are discussing types. If, in C#, I have: interface A {} interface B {} interface G<out T> {} G ...

Re: [go-nuts] Polymorphism in GO

https://groups.google.com/g/golang-nuts/c/N4MBApd09M8/m/tOO5ZXtwbhYJ
1) This trips some people up, but you will need to rely on runtime polymorphism exclusively. Go does not have generics. Look at the package "sort" for an ...

So, what does everyone think?

https://groups.google.com/g/golang-nuts/c/70-pdwUUrbI/m/onMsQspcljcJ
Nov 10, 2009 ... usual sense of implementation inheritance). Can you sensibly use inheritance without polymorphism ... I think that we have is the C calling ...

Adding the Keyword “proxy” in C++ [update for the "interface"]

https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/1b64712a-d9d5-4e93-82fd-1dfd2c5eddcf%40isocpp.org
What we're talking about here is more runtime polymorphism - but the interface we're defining is exactly the same thing. We don't need two keywords with two ...

Better Performance in Polymorphic Programming: Trivially Swappable

https://groups.google.com/a/isocpp.org/g/std-proposals/c/HGCHVSRwSMk/m/k7Ir-rmxBgAJ
... I want, and SBO in polymorphism could be a strong motivation. Is there any ... Currently, in standard C++, it requires a trivial type, as standard C++ does

C++ language: Cloneable classes

https://groups.google.com/g/comp.lang.c++.moderated/c/ZXUWRXZrzeo
it's just the way it is supposed to be, and I misunderstand the C++ ... > see a way to avoid usage of new? But do you need at all that kind of runtime ...

Low level async send with callback.

https://groups.google.com/g/websocketpp/c/-yzpArGovKk
Aug 21, 2014 ... This is really a very thing wrapper around boost::asios async methods and we put it there to have a runtime polymorphism vs plain sockets and ...

Is Polymorphism working in RavenDb?

https://groups.google.com/g/ravendb/c/xx348c2S4Ew
Dec 10, 2011 ... The run time error was that when we asked for a list of Animals (assume Animals are the parent abstract class) .. we got the list of concretes.

Using the ANTLR4's C++ Target's "Any" Class with a Purely Virtual ...

https://groups.google.com/g/antlr-discussion/c/LHHgOLvXza0
In Java the visitor class uses virtual functions with generics to implement that flexibility. This is not possible in C++, as you cannot have virtual (runtime ...

What is so hard about adding generics?

https://groups.google.com/g/golang-nuts/c/smT_0BhHfBs
Nov 29, 2014 ... As for syntax and semantics, the go interface system is already pretty similar to haskell's typeclasses, so I think it should be relatively easy ...

Java-Javascript compiler

https://groups.google.com/g/Google-Web-Toolkit/c/m5zCVasVlYY
> are polymorphic at runtime take longer to dispatch and require extra ... RPC calls at all!] In GWT, we do compile-time code generation instead of runtime

Standardising statement expressions as a special kind of "evil lambda"

https://groups.google.com/a/isocpp.org/g/std-proposals/c/h_iupjUiyeo/m/3VV3bK97AAAJ
the experience we have with any other token in C/C++, which you can format ... This is not a thing that can happen through runtime polymorphism of arbitrary ...