You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1142 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
Full_Name: Dmitry Bely
Version: camlidl CVS version
OS: Windows 2000
Submission from: d065.p9.col.ru (212.248.7.65)
I have just updated camlidl from CVS and found out that [unique] attribute do
not work any longer. The declaration
typedef [unique,string] char* OptionalString;
now generates
type optionalString = string
instead of
type optionalString = string option
as it did before. [ptr] attribute does not work also. It also seems that you
decided to change the default string and bigarray attribute from [unique] to
[ref] (if I understand compiler/parse_aux.ml correctly). Why this was not
mentioned in the "Changes"? :-)
The text was updated successfully, but these errors were encountered:
I have just updated camlidl from CVS and found out that [unique] attribute do
not work any longer. The declaration
typedef [unique,string] char* OptionalString;
now generates
type optionalString = string
instead of
type optionalString = string option
as it did before. [ptr] attribute does not work also. It also seems that you
decided to change the default string and bigarray attribute from [unique] to
[ref] (if I understand compiler/parse_aux.ml correctly).
Correct. I got enough complaints about the old behavior
(i.e. pointer default attribute should not apply to strings or
arrays). However, due to a weakness of the current parsing of attributes,
typedef [unique,string] char* OptionalString;
doesn't do what you want (a possibly NULL string), but
typedef [string,unique] char* OptionalString;
does. I'll try to fix this soon.
Why this was not mentioned in the "Changes"? :-)
Quoting from Changes:
Strings, arrays and bigarrays are now non-NULL if "unique" is not specified,
even if the pointer default is "unique".
Original bug ID: 1142
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
Full_Name: Dmitry Bely
Version: camlidl CVS version
OS: Windows 2000
Submission from: d065.p9.col.ru (212.248.7.65)
I have just updated camlidl from CVS and found out that [unique] attribute do
not work any longer. The declaration
typedef [unique,string] char* OptionalString;
now generates
type optionalString = string
instead of
type optionalString = string option
as it did before. [ptr] attribute does not work also. It also seems that you
decided to change the default string and bigarray attribute from [unique] to
[ref] (if I understand compiler/parse_aux.ml correctly). Why this was not
mentioned in the "Changes"? :-)
The text was updated successfully, but these errors were encountered: